Class Bee.BeeGoToHiveGoal
java.lang.Object
net.minecraft.world.entity.ai.goal.Goal
net.minecraft.world.entity.animal.bee.Bee.BaseBeeGoal
net.minecraft.world.entity.animal.bee.Bee.BeeGoToHiveGoal
- Enclosing class:
Bee
-
Nested Class Summary
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate @Nullable Pathprivate static final intstatic final intprivate static final intprivate intprivate int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidblacklistTarget(BlockPos targetPos) booleanbooleanprivate voidprivate voidprivate booleanhasReachedTarget(BlockPos targetPos) private booleanisTargetBlacklisted(BlockPos targetPos) private booleanpathfindDirectlyTowards(BlockPos targetPos) voidstart()voidstop()voidtick()Methods inherited from class Bee.BaseBeeGoal
canContinueToUse, canUseMethods inherited from class Goal
adjustedTickDelay, getFlags, getServerLevel, getServerLevel, isInterruptable, reducedTickDelay, requiresUpdateEveryTick, setFlags, toString
-
Field Details
-
MAX_TRAVELLING_TICKS
public static final int MAX_TRAVELLING_TICKS- See Also:
-
travellingTicks
private int travellingTicks -
MAX_BLACKLISTED_TARGETS
private static final int MAX_BLACKLISTED_TARGETS- See Also:
-
blacklistedTargets
-
lastPath
-
TICKS_BEFORE_HIVE_DROP
private static final int TICKS_BEFORE_HIVE_DROP- See Also:
-
ticksStuck
private int ticksStuck
-
-
Constructor Details
-
BeeGoToHiveGoal
BeeGoToHiveGoal()
-
-
Method Details
-
canBeeUse
public boolean canBeeUse()- Specified by:
canBeeUsein classBee.BaseBeeGoal
-
canBeeContinueToUse
public boolean canBeeContinueToUse()- Specified by:
canBeeContinueToUsein classBee.BaseBeeGoal
-
start
-
stop
-
tick
-
pathfindDirectlyTowards
-
isTargetBlacklisted
-
blacklistTarget
-
clearBlacklist
private void clearBlacklist() -
dropAndBlacklistHive
private void dropAndBlacklistHive() -
hasReachedTarget
-