net.minecraft.world.level.block

public class InfestedBlock

extends Block

All mapped superinterfaces:

FeatureElement, ItemLike

dno
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(dwy arg0)
isCompatibleHostBlock(BlockState arg0)
method_10269(class_2680 arg0)
isInfestable(BlockState block)
private void
a(ard arg0, ji arg1)
spawnInfestation(ServerLevel arg0, BlockPos arg1)
method_24797(class_3218 arg0, class_2338 arg1)
spawnSilverfish(ServerWorld world, BlockPos pos)
protected void
a(dwy arg0, ard arg1, ji arg2, cwq 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(dwy arg0)
infestedStateByHost(BlockState arg0)
method_36366(class_2680 arg0)
fromRegularState(BlockState regularState)
public BlockState
q(dwy arg0)
hostStateByInfested(BlockState arg0)
method_10270(class_2680 arg0)
toRegularState(BlockState infestedState)
private static BlockState
a(Map<dwy, dwy> arg0, dwy arg1, Supplier<dwy> 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)