/* * Decompiled with CFR 0.152. */ package com.vinlanx.explosionoverhaul; import com.vinlanx.explosionoverhaul.VinlanxTheLightBlockEntity; import javax.annotation.Nullable; import net.minecraft.core.BlockPos; import net.minecraft.core.Direction; import net.minecraft.world.item.context.BlockPlaceContext; import net.minecraft.world.level.block.BaseEntityBlock; import net.minecraft.world.level.block.Block; import net.minecraft.world.level.block.HorizontalDirectionalBlock; import net.minecraft.world.level.block.Mirror; import net.minecraft.world.level.block.RenderShape; import net.minecraft.world.level.block.Rotation; import net.minecraft.world.level.block.SoundType; import net.minecraft.world.level.block.entity.BlockEntity; import net.minecraft.world.level.block.state.BlockBehaviour; import net.minecraft.world.level.block.state.BlockState; import net.minecraft.world.level.block.state.StateDefinition; import net.minecraft.world.level.block.state.properties.DirectionProperty; import net.minecraft.world.level.block.state.properties.Property; import net.minecraft.world.level.material.MapColor; public class VinlanxTheLightBlock extends BaseEntityBlock { public static final DirectionProperty FACING = HorizontalDirectionalBlock.f_54117_; public VinlanxTheLightBlock(BlockBehaviour.Properties properties) { super(properties); this.m_49959_((BlockState)((BlockState)this.f_49792_.m_61090_()).m_61124_((Property)FACING, (Comparable)Direction.NORTH)); } public static BlockBehaviour.Properties defaultProperties() { return BlockBehaviour.Properties.m_284310_().m_284180_(MapColor.f_283811_).m_60978_(2.5f).m_60955_().m_60918_(SoundType.f_154654_).m_60953_(state -> 12); } public RenderShape m_7514_(BlockState state) { return RenderShape.ENTITYBLOCK_ANIMATED; } @Nullable public BlockEntity m_142194_(BlockPos pos, BlockState state) { return new VinlanxTheLightBlockEntity(pos, state); } public BlockState m_5573_(BlockPlaceContext context) { Direction direction = context.m_8125_(); return (BlockState)this.m_49966_().m_61124_((Property)FACING, (Comparable)direction); } public BlockState m_6843_(BlockState state, Rotation rotation) { return (BlockState)state.m_61124_((Property)FACING, (Comparable)rotation.m_55954_((Direction)state.m_61143_((Property)FACING))); } public BlockState m_6943_(BlockState state, Mirror mirror) { return state.m_60717_(mirror.m_54846_((Direction)state.m_61143_((Property)FACING))); } protected void m_7926_(StateDefinition.Builder builder) { builder.m_61104_(new Property[]{FACING}); } }