/* * Decompiled with CFR 0.152. * * Could not load the following classes: * com.mojang.serialization.MapCodec */ package net.minecraft.world.level.block; import com.mojang.serialization.MapCodec; import net.minecraft.world.item.context.BlockPlaceContext; import net.minecraft.world.level.block.Block; import net.minecraft.world.level.block.HorizontalDirectionalBlock; import net.minecraft.world.level.block.state.BlockBehaviour; import net.minecraft.world.level.block.state.BlockState; import net.minecraft.world.level.block.state.StateDefinition; public class GlazedTerracottaBlock extends HorizontalDirectionalBlock { public static final MapCodec CODEC = GlazedTerracottaBlock.simpleCodec(GlazedTerracottaBlock::new); public MapCodec codec() { return CODEC; } public GlazedTerracottaBlock(BlockBehaviour.Properties properties) { super(properties); } @Override protected void createBlockStateDefinition(StateDefinition.Builder builder) { builder.add(FACING); } @Override public BlockState getStateForPlacement(BlockPlaceContext context) { return (BlockState)this.defaultBlockState().setValue(FACING, context.getHorizontalDirection().getOpposite()); } }