net.minecraft.world.entity.ai.behavior

public class LongJumpToPreferredBlock<E extends Mob>

extends LongJumpToRandomPos<E>

bdv
net.minecraft.world.entity.ai.behavior.LongJumpToPreferredBlock
net.minecraft.class_7096
net.minecraft.entity.ai.brain.task.BiasedLongJumpTask
net.minecraft.src.C_213014_
net.minecraft.world.entity.ai.behavior.LongJumpToPreferredBlock

Field summary

Modifier and TypeField
private final TagKey<Block>
m
preferredBlockTag
field_37427
favoredBlocks
f_217259_
private final float
n
preferredBlocksChance
field_37428
biasChance
f_217260_
private final List<LongJumpToRandomPos$PossibleJump>
o
notPrefferedJumpCandidates
field_37429
unfavoredTargets
f_217261_
private boolean
p
currentlyWantingPreferredOnes
field_37430
useBias
f_217262_

Constructor summary

ModifierConstructor
public (UniformInt cooldownRange, int verticalRange, int horizontalRange, float maxRange, Function<E, SoundEvent> entityToSound, TagKey<Block> favoredBlocks, float biasChance, Predicate<BlockState> jumpToPredicate)

Method summary

Modifier and TypeMethod
protected void
a(afo arg0, E arg1, long arg2)
start(ServerLevel arg0, E arg1, long arg2)
method_35082(class_3218 arg0, E arg1, long arg2)
run(ServerWorld arg0, E arg1, long arg2)
m_6735_(C_12_ p_217280_, E p_217281_, long arg2)
protected Optional<LongJumpToRandomPos$PossibleJump>
a(afo arg0)
getJumpCandidate(ServerLevel arg0)
method_41336(class_3218 arg0)
getTarget(ServerWorld arg0)
m_213675_(C_12_ arg0)
protected boolean
a(afo arg0, E arg1, gt arg2)
isAcceptableLandingPosition(ServerLevel arg0, E arg1, BlockPos arg2)
method_41337(class_3218 arg0, E arg1, class_2338 arg2)
canJumpTo(ServerWorld arg0, E arg1, BlockPos arg2)
m_213828_(C_12_ p_217284_, E p_217285_, C_4675_ arg2)
private boolean
a(afo arg0, gt arg1)
willNotLandInFluid(ServerLevel arg0, BlockPos arg1)
method_41338(class_3218 arg0, class_2338 arg1)
isFluidStateAndBelowEmpty(ServerWorld world, BlockPos pos)
m_217286_(C_12_ p_217288_, C_4675_ arg1)