net.minecraft.world.level.block

public class InfestedBlock

extends Block

All mapped superinterfaces:

FeatureElement, ItemLike

dja
net.minecraft.world.level.block.InfestedBlock
net.minecraft.class_2384
net.minecraft.block.InfestedBlock
net.minecraft.src.C_1817_
net.minecraft.world.level.block.BlockMonsterEggs

Field summary

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

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()
m_304657_()
public Block
b()
getHostBlock()
method_10271()
getRegularBlock()
m_54192_()
public static boolean
m(dse arg0)
isCompatibleHostBlock(BlockState arg0)
method_10269(class_2680 arg0)
isInfestable(BlockState block)
m_54195_(C_2064_ p_54196_)
private void
a(arf arg0, iz arg1)
spawnInfestation(ServerLevel arg0, BlockPos arg1)
method_24797(class_3218 arg0, class_2338 arg1)
spawnSilverfish(ServerWorld world, BlockPos pos)
m_54180_(C_12_ p_54182_, C_4675_ arg1)
protected void
a(dse arg0, arf arg1, iz arg2, cur 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)
m_213646_(C_2064_ p_221361_, C_12_ p_221362_, C_4675_ p_221363_, C_1391_ p_221364_, boolean arg4)
public static BlockState
n(dse arg0)
infestedStateByHost(BlockState arg0)
method_36366(class_2680 arg0)
fromRegularState(BlockState regularState)
m_153430_(C_2064_ p_153431_)
public BlockState
o(dse arg0)
hostStateByInfested(BlockState arg0)
method_10270(class_2680 arg0)
toRegularState(BlockState infestedState)
m_153432_(C_2064_ arg0)
private static BlockState
a(Map<dse, dse> arg0, dse arg1, Supplier<dse> 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)
m_153423_(Map<C_2064_, C_2064_> p_153424_, C_2064_ p_153425_, Supplier<C_2064_> p_153426_)