WitherWallSkullBlock .java

net.minecraft.world.level.block.WitherWallSkullBlock (class, 27 lines): extends WallSkullBlock. members: setPlacedBy. imports: BlockBehaviour.

net.minecraft.world.level.blockclass27 linescommonextends WallSkullBlock935 B

API Surface (1)

void setPlacedBy(final Level level, final BlockPos pos, final BlockState state, final @Nullable LivingEntity by, final ItemStack itemStack)

Full Source

WitherWallSkullBlock.java27 lines · Minecraft 26.3 · verbatim
1
package net.minecraft.world.level.block;
2
3
import net.minecraft.core.BlockPos;
4
import net.minecraft.world.entity.LivingEntity;
5
import net.minecraft.world.item.ItemStack;
6
import net.minecraft.world.level.Level;
7
import net.minecraft.world.level.block.state.BlockBehaviour;
8
import net.minecraft.world.level.block.state.BlockState;
9
import org.jspecify.annotations.Nullable;
10
11
/**
12
 * Access widened by fabric-transitive-access-wideners-v1 to accessible
13
 */
14
public class WitherWallSkullBlock extends WallSkullBlock {
15
	/**
16
	 * Access widened by fabric-transitive-access-wideners-v1 to accessible
17
	 */
18
	public WitherWallSkullBlock(final BlockBehaviour.Properties properties) {
19
		super(SkullBlock.Types.WITHER_SKELETON, properties);
20
	}
21
22
	@Override
23
	public void setPlacedBy(final Level level, final BlockPos pos, final BlockState state, final @Nullable LivingEntity by, final ItemStack itemStack) {
24
		WitherSkullBlock.checkSpawn(level, pos);
25
	}
26
}
27

Decompiled Minecraft 26.3 source of WitherWallSkullBlock (net/minecraft/world/level/block/WitherWallSkullBlock.java) with Mojang official mappings, stored verbatim on the site.