Class Bee.BeeGoToHiveGoal
java.lang.Object
net.minecraft.world.entity.ai.goal.Goal
net.minecraft.world.entity.animal.Bee.BaseBeeGoal
net.minecraft.world.entity.animal.Bee.BeeGoToHiveGoal
- Enclosing class:
Bee
-
Nested Class Summary
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Pathprivate static final intstatic final intprivate static final intprivate int(package private) int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidblacklistTarget(BlockPos p_27999_) booleanboolean(package private) voidprivate voidprivate voiddropHive()private booleanhasReachedTarget(BlockPos p_28002_) (package private) booleanisTargetBlacklisted(BlockPos p_27994_) private booleanpathfindDirectlyTowards(BlockPos p_27991_) voidstart()voidstop()voidtick()Methods inherited from class net.minecraft.world.entity.animal.Bee.BaseBeeGoal
canContinueToUse, canUseMethods inherited from class net.minecraft.world.entity.ai.goal.Goal
adjustedTickDelay, getFlags, isInterruptable, reducedTickDelay, requiresUpdateEveryTick, setFlags, toString
-
Field Details
-
MAX_TRAVELLING_TICKS
public static final int MAX_TRAVELLING_TICKS- See Also:
-
travellingTicks
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
public void start() -
stop
public void stop() -
tick
public void tick() -
pathfindDirectlyTowards
-
isTargetBlacklisted
-
blacklistTarget
-
clearBlacklist
void clearBlacklist() -
dropAndBlacklistHive
private void dropAndBlacklistHive() -
dropHive
private void dropHive() -
hasReachedTarget
-