类 FoxEntity.EatSweetBerriesGoal
- java.lang.Object
-
- net.minecraft.entity.ai.goal.Goal
-
- net.minecraft.entity.ai.goal.MoveToTargetPosGoal
-
- net.minecraft.entity.passive.FoxEntity.EatSweetBerriesGoal
-
- 封闭类:
- FoxEntity
public class FoxEntity.EatSweetBerriesGoal extends MoveToTargetPosGoal
- Mappings:
Namespace Name official bdi$fintermediary net/minecraft/class_4019$class_4025named net/minecraft/entity/passive/FoxEntity$EatSweetBerriesGoal
-
-
嵌套类概要
-
从类继承的嵌套类/接口 net.minecraft.entity.ai.goal.Goal
Goal.Control
-
-
字段概要
字段 修饰符和类型 字段 说明 private static intEATING_TIMEprotected inttimer-
从类继承的字段 net.minecraft.entity.ai.goal.MoveToTargetPosGoal
cooldown, lowestY, mob, speed, targetPos, tryingTime
-
-
构造器概要
构造器 构造器 说明 EatSweetBerriesGoal(double speed, int range, int maxYDifference)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 booleancanStart()protected voideatSweetBerry()doublegetDesiredSquaredDistanceToTarget()protected booleanisTargetPos(WorldView world, BlockPos pos)private voidpickGlowBerries(BlockState state)private voidpickSweetBerries(BlockState state)booleanshouldResetPath()voidstart()voidtick()-
从类继承的方法 net.minecraft.entity.ai.goal.MoveToTargetPosGoal
findTargetPos, getInterval, getTargetPos, hasReached, shouldContinue, startMovingToTarget
-
从类继承的方法 net.minecraft.entity.ai.goal.Goal
canStop, getControls, setControls, stop, toString
-
-
-
-
字段详细资料
-
EATING_TIME
private static final int EATING_TIME
- 另请参阅:
- 常量字段值
- Mappings:
Namespace Name Mixin selector official iLbdi$f;i:Iintermediary field_30336Lnet/minecraft/class_4019$class_4025;field_30336:Inamed EATING_TIMELnet/minecraft/entity/passive/FoxEntity$EatSweetBerriesGoal;EATING_TIME:I
-
timer
protected int timer
- Mappings:
Namespace Name Mixin selector official gLbdi$f;g:Iintermediary field_17974Lnet/minecraft/class_4019$class_4025;field_17974:Inamed timerLnet/minecraft/entity/passive/FoxEntity$EatSweetBerriesGoal;timer:I
-
-
构造器详细资料
-
EatSweetBerriesGoal
public EatSweetBerriesGoal(double speed, int range, int maxYDifference)- Mappings:
Namespace Name Mixin selector official <init>Lbdi$f;<init>(Lbdi;DII)Vintermediary <init>Lnet/minecraft/class_4019$class_4025;<init>(Lnet/minecraft/class_4019;DII)Vnamed <init>Lnet/minecraft/entity/passive/FoxEntity$EatSweetBerriesGoal;<init>(Lnet/minecraft/entity/passive/FoxEntity;DII)V
-
-
方法详细资料
-
getDesiredSquaredDistanceToTarget
public double getDesiredSquaredDistanceToTarget()
- 覆盖:
getDesiredSquaredDistanceToTarget在类中MoveToTargetPosGoal- Mappings:
Namespace Name Mixin selector official hLazd;h()Dintermediary method_6291Lnet/minecraft/class_1367;method_6291()Dnamed getDesiredSquaredDistanceToTargetLnet/minecraft/entity/ai/goal/MoveToTargetPosGoal;getDesiredSquaredDistanceToTarget()D
-
shouldResetPath
public boolean shouldResetPath()
- 覆盖:
shouldResetPath在类中MoveToTargetPosGoal- Mappings:
Namespace Name Mixin selector official kLazd;k()Zintermediary method_6294Lnet/minecraft/class_1367;method_6294()Znamed shouldResetPathLnet/minecraft/entity/ai/goal/MoveToTargetPosGoal;shouldResetPath()Z
-
isTargetPos
protected boolean isTargetPos(WorldView world, BlockPos pos)
- 指定者:
isTargetPos在类中MoveToTargetPosGoal- Mappings:
Namespace Name Mixin selector official aLazd;a(Lbvu;Lgb;)Zintermediary method_6296Lnet/minecraft/class_1367;method_6296(Lnet/minecraft/class_4538;Lnet/minecraft/class_2338;)Znamed isTargetPosLnet/minecraft/entity/ai/goal/MoveToTargetPosGoal;isTargetPos(Lnet/minecraft/world/WorldView;Lnet/minecraft/util/math/BlockPos;)Z
-
tick
public void tick()
- 覆盖:
tick在类中MoveToTargetPosGoal- Mappings:
Namespace Name Mixin selector official eLayq;e()Vintermediary method_6268Lnet/minecraft/class_1352;method_6268()Vnamed tickLnet/minecraft/entity/ai/goal/Goal;tick()V
-
eatSweetBerry
protected void eatSweetBerry()
- Mappings:
Namespace Name Mixin selector official nLbdi$f;n()Vintermediary method_18307Lnet/minecraft/class_4019$class_4025;method_18307()Vnamed eatSweetBerryLnet/minecraft/entity/passive/FoxEntity$EatSweetBerriesGoal;eatSweetBerry()V
-
pickGlowBerries
private void pickGlowBerries(BlockState state)
- Mappings:
Namespace Name Mixin selector official aLbdi$f;a(Lcjr;)Vintermediary method_33586Lnet/minecraft/class_4019$class_4025;method_33586(Lnet/minecraft/class_2680;)Vnamed pickGlowBerriesLnet/minecraft/entity/passive/FoxEntity$EatSweetBerriesGoal;pickGlowBerries(Lnet/minecraft/block/BlockState;)V
-
pickSweetBerries
private void pickSweetBerries(BlockState state)
- Mappings:
Namespace Name Mixin selector official bLbdi$f;b(Lcjr;)Vintermediary method_33587Lnet/minecraft/class_4019$class_4025;method_33587(Lnet/minecraft/class_2680;)Vnamed pickSweetBerriesLnet/minecraft/entity/passive/FoxEntity$EatSweetBerriesGoal;pickSweetBerries(Lnet/minecraft/block/BlockState;)V
-
canStart
public boolean canStart()
- 覆盖:
canStart在类中MoveToTargetPosGoal- Mappings:
Namespace Name Mixin selector official aLayq;a()Zintermediary method_6264Lnet/minecraft/class_1352;method_6264()Znamed canStartLnet/minecraft/entity/ai/goal/Goal;canStart()Z
-
start
public void start()
- 覆盖:
start在类中MoveToTargetPosGoal- Mappings:
Namespace Name Mixin selector official cLayq;c()Vintermediary method_6269Lnet/minecraft/class_1352;method_6269()Vnamed startLnet/minecraft/entity/ai/goal/Goal;start()V
-
-