2025-11-24 22:52:51 +03:00

40 lines
1.3 KiB
Java

/*
* 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<GlazedTerracottaBlock> CODEC = GlazedTerracottaBlock.simpleCodec(GlazedTerracottaBlock::new);
public MapCodec<GlazedTerracottaBlock> codec() {
return CODEC;
}
public GlazedTerracottaBlock(BlockBehaviour.Properties properties) {
super(properties);
}
@Override
protected void createBlockStateDefinition(StateDefinition.Builder<Block, BlockState> builder) {
builder.add(FACING);
}
@Override
public BlockState getStateForPlacement(BlockPlaceContext context) {
return (BlockState)this.defaultBlockState().setValue(FACING, context.getHorizontalDirection().getOpposite());
}
}