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 pos) booleanboolean(package private) voidprivate voidprivate voiddropHive()private booleanhasReachedTarget(BlockPos pos) (package private) booleanprivate booleanvoidstart()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
-