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
Modifier and TypeFieldDescriptionprivate Path
private static int
static int
private static int
private int
(package private) int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate void
blacklistTarget(BlockPos p_27999_)
boolean
boolean
(package private) void
private void
private void
dropHive()
private boolean
hasReachedTarget(BlockPos p_28002_)
(package private) boolean
isTargetBlacklisted(BlockPos p_27994_)
private boolean
pathfindDirectlyTowards(BlockPos p_27991_)
void
start()
void
stop()
void
tick()
Methods inherited from class net.minecraft.world.entity.animal.Bee.BaseBeeGoal
canContinueToUse, canUse
Methods inherited from class net.minecraft.world.entity.ai.goal.Goal
getFlags, isInterruptable, setFlags, toString
-
Field Details
-
MAX_TRAVELLING_TICKS
public static final int MAX_TRAVELLING_TICKS- See Also:
- Constant Field Values
-
travellingTicks
int travellingTicks -
MAX_BLACKLISTED_TARGETS
private static final int MAX_BLACKLISTED_TARGETS- See Also:
- Constant Field Values
-
blacklistedTargets
-
lastPath
-
TICKS_BEFORE_HIVE_DROP
private static final int TICKS_BEFORE_HIVE_DROP- See Also:
- Constant Field Values
-
ticksStuck
private int ticksStuck
-
-
Constructor Details
-
BeeGoToHiveGoal
BeeGoToHiveGoal()
-
-
Method Details
-
canBeeUse
public boolean canBeeUse()- Specified by:
canBeeUse
in classBee.BaseBeeGoal
-
canBeeContinueToUse
public boolean canBeeContinueToUse()- Specified by:
canBeeContinueToUse
in 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
-