40 lines
1.3 KiB
Java
40 lines
1.3 KiB
Java
/*
|
|
* Decompiled with CFR 0.152.
|
|
*
|
|
* Could not load the following classes:
|
|
* com.mojang.serialization.MapCodec
|
|
* org.jspecify.annotations.Nullable
|
|
*/
|
|
package net.minecraft.world.level.block;
|
|
|
|
import com.mojang.serialization.MapCodec;
|
|
import net.minecraft.core.BlockPos;
|
|
import net.minecraft.world.entity.LivingEntity;
|
|
import net.minecraft.world.item.ItemStack;
|
|
import net.minecraft.world.level.Level;
|
|
import net.minecraft.world.level.block.SkullBlock;
|
|
import net.minecraft.world.level.block.WallSkullBlock;
|
|
import net.minecraft.world.level.block.WitherSkullBlock;
|
|
import net.minecraft.world.level.block.state.BlockBehaviour;
|
|
import net.minecraft.world.level.block.state.BlockState;
|
|
import org.jspecify.annotations.Nullable;
|
|
|
|
public class WitherWallSkullBlock
|
|
extends WallSkullBlock {
|
|
public static final MapCodec<WitherWallSkullBlock> CODEC = WitherWallSkullBlock.simpleCodec(WitherWallSkullBlock::new);
|
|
|
|
public MapCodec<WitherWallSkullBlock> codec() {
|
|
return CODEC;
|
|
}
|
|
|
|
protected WitherWallSkullBlock(BlockBehaviour.Properties properties) {
|
|
super(SkullBlock.Types.WITHER_SKELETON, properties);
|
|
}
|
|
|
|
@Override
|
|
public void setPlacedBy(Level level, BlockPos pos, BlockState state, @Nullable LivingEntity by, ItemStack itemStack) {
|
|
WitherSkullBlock.checkSpawn(level, pos);
|
|
}
|
|
}
|
|
|