net.minecraft.world.level.block

public class InfestedBlock

extends Block

All mapped superinterfaces:

FeatureElement, ItemLike

don
net.minecraft.world.level.block.InfestedBlock
net.minecraft.class_2384
net.minecraft.block.InfestedBlock
net.minecraft.world.level.block.BlockMonsterEggs

Field summary

Modifier and TypeField
public static final com.mojang.serialization.MapCodec<InfestedBlock>
a
CODEC
field_46373
CODEC
private final Block
b
hostBlock
field_11178
regularBlock
private static final Map<Block, Block>
c
BLOCK_BY_HOST_BLOCK
field_11179
REGULAR_TO_INFESTED_BLOCK
private static final Map<BlockState, BlockState>
d
HOST_TO_INFESTED_STATES
field_33564
REGULAR_TO_INFESTED_STATE
private static final Map<BlockState, BlockState>
e
INFESTED_TO_HOST_STATES
field_33565
INFESTED_TO_REGULAR_STATE

Constructor summary

ModifierConstructor
public (Block regularBlock, BlockBehaviour$Properties settings)

Method summary

Modifier and TypeMethod
public com.mojang.serialization.MapCodec<? extends InfestedBlock>
a()
codec()
method_53969()
getCodec()
public Block
b()
getHostBlock()
method_10271()
getRegularBlock()
public static boolean
o(dxv arg0)
isCompatibleHostBlock(BlockState arg0)
method_10269(class_2680 arg0)
isInfestable(BlockState block)
private void
a(ash arg0, jh arg1)
spawnInfestation(ServerLevel arg0, BlockPos arg1)
method_24797(class_3218 arg0, class_2338 arg1)
spawnSilverfish(ServerWorld world, BlockPos pos)
protected void
a(dxv arg0, ash arg1, jh arg2, cxp arg3, boolean arg4)
spawnAfterBreak(BlockState arg0, ServerLevel arg1, BlockPos arg2, ItemStack arg3, boolean arg4)
method_9565(class_2680 arg0, class_3218 arg1, class_2338 arg2, class_1799 arg3, boolean arg4)
onStacksDropped(BlockState arg0, ServerWorld arg1, BlockPos arg2, ItemStack arg3, boolean arg4)
public static BlockState
p(dxv arg0)
infestedStateByHost(BlockState arg0)
method_36366(class_2680 arg0)
fromRegularState(BlockState regularState)
public BlockState
q(dxv arg0)
hostStateByInfested(BlockState arg0)
method_10270(class_2680 arg0)
toRegularState(BlockState infestedState)
private static BlockState
a(Map<dxv, dxv> arg0, dxv arg1, Supplier<dxv> arg2)
getNewStateWithProperties(Map<BlockState, BlockState> arg0, BlockState arg1, Supplier<BlockState> arg2)
method_36363(Map<class_2680, class_2680> arg0, class_2680 arg1, Supplier<class_2680> arg2)
copyProperties(Map<BlockState, BlockState> stateMap, BlockState fromState, Supplier<BlockState> toStateSupplier)