Class TermiteManager.Termite
java.lang.Object
net.frozenblock.wilderwild.entity.ai.TermiteManager.Termite
- Enclosing class:
TermiteManager
-
Field Summary
FieldsModifier and TypeFieldDescriptionintstatic final com.mojang.serialization.Codec<TermiteManager.Termite> static final Map<net.minecraft.world.level.block.Block, net.minecraft.world.level.block.Block> static final intstatic final intstatic final intstatic final intbooleanstatic final intintintstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intnet.minecraft.core.BlockPosstatic final Map<net.minecraft.world.level.block.Block, net.minecraft.world.level.block.Block> net.minecraft.core.BlockPosintstatic final int -
Constructor Summary
ConstructorsConstructorDescriptionTermite(@NotNull net.minecraft.core.BlockPos mound, @NotNull net.minecraft.core.BlockPos pos, int blockDestroyPower, int aliveTicks, int update) Termite(@NotNull net.minecraft.core.BlockPos mound, @NotNull net.minecraft.core.BlockPos pos, int blockDestroyPower, int aliveTicks, int update, boolean eating, int id) -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddDegradable(net.minecraft.world.level.block.Block degradable, net.minecraft.world.level.block.Block result) static voidstatic voidaddNaturalDegradable(@NotNull net.minecraft.world.level.block.Block degradable, @NotNull net.minecraft.world.level.block.Block result) static voidstatic booleancanMove(@NotNull net.minecraft.world.level.LevelAccessor level, @NotNull net.minecraft.core.BlockPos pos) static @Nullable net.minecraft.core.BlockPosdegradableBreakablePos(@NotNull net.minecraft.world.level.Level level, @NotNull net.minecraft.core.BlockPos pos, boolean natural, net.minecraft.util.RandomSource random) static booleanexposedToAir(@NotNull net.minecraft.world.level.Level level, @NotNull net.minecraft.core.BlockPos pos, boolean natural) intbooleanintgetID()int@NotNull net.minecraft.core.BlockPos@NotNull net.minecraft.core.BlockPosgetPos()intstatic booleanisBlockMovable(@NotNull net.minecraft.world.level.block.state.BlockState state, @NotNull net.minecraft.core.Direction direction) static booleanisEdibleProperty(@NotNull net.minecraft.world.level.block.state.BlockState state) static booleanisTooFar(boolean natural, @NotNull net.minecraft.core.BlockPos mound, @NotNull net.minecraft.core.BlockPos pos) static @Nullable net.minecraft.core.BlockPosledgePos(@NotNull net.minecraft.world.level.Level level, @NotNull net.minecraft.core.BlockPos pos, boolean natural) static voidspawnEatParticles(@NotNull net.minecraft.world.level.Level level, @NotNull net.minecraft.world.level.block.state.BlockState eatState, @NotNull net.minecraft.core.BlockPos pos, net.minecraft.util.RandomSource random) static voidspawnGnawParticles(@NotNull net.minecraft.world.level.Level level, @NotNull net.minecraft.world.level.block.state.BlockState eatState, @NotNull net.minecraft.core.BlockPos pos, net.minecraft.util.RandomSource random) booleantick(@NotNull net.minecraft.world.level.Level level, boolean natural, net.minecraft.util.RandomSource random)
-
Field Details
-
DESTROY_POWER_BEFORE_BLOCK_BREAKS
public static final int DESTROY_POWER_BEFORE_BLOCK_BREAKS- See Also:
-
DESTROY_POWER_LEAVES
public static final int DESTROY_POWER_LEAVES- See Also:
-
DESTROY_POWER_BREAKABLE
public static final int DESTROY_POWER_BREAKABLE- See Also:
-
DESTROY_POWER
public static final int DESTROY_POWER- See Also:
-
MAX_IDLE_TICKS
public static final int MAX_IDLE_TICKS- See Also:
-
MAX_IDLE_TICKS_NATURAL
public static final int MAX_IDLE_TICKS_NATURAL- See Also:
-
UPDATE_DELAY_IN_TICKS
public static final int UPDATE_DELAY_IN_TICKS- See Also:
-
GNAW_PARTICLE_CHANCE
public static final int GNAW_PARTICLE_CHANCE- See Also:
-
MIN_GNAW_PARTICLES
public static final int MIN_GNAW_PARTICLES- See Also:
-
MAX_GNAW_PARTICLES
public static final int MAX_GNAW_PARTICLES- See Also:
-
MIN_EAT_PARTICLES
public static final int MIN_EAT_PARTICLES- See Also:
-
MAX_EAT_PARTICLES
public static final int MAX_EAT_PARTICLES- See Also:
-
CODEC
-
DEGRADABLE_BLOCKS
public static final Map<net.minecraft.world.level.block.Block,net.minecraft.world.level.block.Block> DEGRADABLE_BLOCKS -
NATURAL_DEGRADABLE_BLOCKS
public static final Map<net.minecraft.world.level.block.Block,net.minecraft.world.level.block.Block> NATURAL_DEGRADABLE_BLOCKS -
mound
public net.minecraft.core.BlockPos mound -
pos
public net.minecraft.core.BlockPos pos -
blockDestroyPower
public int blockDestroyPower -
idleTicks
public int idleTicks -
update
public int update -
eating
public boolean eating -
id
public int id
-
-
Constructor Details
-
Termite
public Termite(@NotNull @NotNull net.minecraft.core.BlockPos mound, @NotNull @NotNull net.minecraft.core.BlockPos pos, int blockDestroyPower, int aliveTicks, int update) -
Termite
public Termite(@NotNull @NotNull net.minecraft.core.BlockPos mound, @NotNull @NotNull net.minecraft.core.BlockPos pos, int blockDestroyPower, int aliveTicks, int update, boolean eating, int id)
-
-
Method Details
-
tick
public boolean tick(@NotNull @NotNull net.minecraft.world.level.Level level, boolean natural, net.minecraft.util.RandomSource random) -
ledgePos
@Nullable public static @Nullable net.minecraft.core.BlockPos ledgePos(@NotNull @NotNull net.minecraft.world.level.Level level, @NotNull @NotNull net.minecraft.core.BlockPos pos, boolean natural) -
degradableBreakablePos
@Nullable public static @Nullable net.minecraft.core.BlockPos degradableBreakablePos(@NotNull @NotNull net.minecraft.world.level.Level level, @NotNull @NotNull net.minecraft.core.BlockPos pos, boolean natural, net.minecraft.util.RandomSource random) -
isEdibleProperty
public static boolean isEdibleProperty(@NotNull @NotNull net.minecraft.world.level.block.state.BlockState state) -
exposedToAir
public static boolean exposedToAir(@NotNull @NotNull net.minecraft.world.level.Level level, @NotNull @NotNull net.minecraft.core.BlockPos pos, boolean natural) -
canMove
public static boolean canMove(@NotNull @NotNull net.minecraft.world.level.LevelAccessor level, @NotNull @NotNull net.minecraft.core.BlockPos pos) -
isBlockMovable
public static boolean isBlockMovable(@NotNull @NotNull net.minecraft.world.level.block.state.BlockState state, @NotNull @NotNull net.minecraft.core.Direction direction) -
isTooFar
public static boolean isTooFar(boolean natural, @NotNull @NotNull net.minecraft.core.BlockPos mound, @NotNull @NotNull net.minecraft.core.BlockPos pos) -
spawnGnawParticles
public static void spawnGnawParticles(@NotNull @NotNull net.minecraft.world.level.Level level, @NotNull @NotNull net.minecraft.world.level.block.state.BlockState eatState, @NotNull @NotNull net.minecraft.core.BlockPos pos, net.minecraft.util.RandomSource random) -
spawnEatParticles
public static void spawnEatParticles(@NotNull @NotNull net.minecraft.world.level.Level level, @NotNull @NotNull net.minecraft.world.level.block.state.BlockState eatState, @NotNull @NotNull net.minecraft.core.BlockPos pos, net.minecraft.util.RandomSource random) -
getMoundPos
@NotNull public @NotNull net.minecraft.core.BlockPos getMoundPos() -
getPos
@NotNull public @NotNull net.minecraft.core.BlockPos getPos() -
getBlockDestroyPower
public int getBlockDestroyPower() -
getIdleTicks
public int getIdleTicks() -
getUpdateTicks
public int getUpdateTicks() -
getEating
public boolean getEating() -
getID
public int getID() -
addDegradableBlocks
public static void addDegradableBlocks() -
addDegradable
public static void addDegradable(net.minecraft.world.level.block.Block degradable, net.minecraft.world.level.block.Block result) -
addNaturalDegradableBlocks
public static void addNaturalDegradableBlocks() -
addNaturalDegradable
public static void addNaturalDegradable(@NotNull @NotNull net.minecraft.world.level.block.Block degradable, @NotNull @NotNull net.minecraft.world.level.block.Block result)
-