类 StepAndDestroyBlockGoal
- java.lang.Object
-
- net.minecraft.entity.ai.goal.Goal
-
- net.minecraft.entity.ai.goal.MoveToTargetPosGoal
-
- net.minecraft.entity.ai.goal.StepAndDestroyBlockGoal
-
- 直接已知子类:
ZombieEntity.DestroyEggGoal
public class StepAndDestroyBlockGoal extends MoveToTargetPosGoal
- Mappings:
Namespace Name official azrintermediary net/minecraft/class_1382named net/minecraft/entity/ai/goal/StepAndDestroyBlockGoal
-
-
嵌套类概要
-
从类继承的嵌套类/接口 net.minecraft.entity.ai.goal.Goal
Goal.Control
-
-
字段概要
字段 修饰符和类型 字段 说明 private intcounterprivate static intfield_30227private MobEntitystepAndDestroyMobprivate BlocktargetBlock-
从类继承的字段 net.minecraft.entity.ai.goal.MoveToTargetPosGoal
cooldown, lowestY, mob, speed, targetPos, tryingTime
-
-
构造器概要
构造器 构造器 说明 StepAndDestroyBlockGoal(Block targetBlock, PathAwareEntity mob, double speed, int maxYDifference)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 booleancanStart()private booleanhasAvailableTarget()protected booleanisTargetPos(WorldView world, BlockPos pos)voidonDestroyBlock(World world, BlockPos pos)voidstart()voidstop()voidtick()voidtickStepping(WorldAccess world, BlockPos pos)private @Nullable BlockPostweakToProperPos(BlockPos pos, BlockView world)-
从类继承的方法 net.minecraft.entity.ai.goal.MoveToTargetPosGoal
findTargetPos, getDesiredSquaredDistanceToTarget, getInterval, getTargetPos, hasReached, shouldContinue, shouldResetPath, startMovingToTarget
-
从类继承的方法 net.minecraft.entity.ai.goal.Goal
canStop, getControls, setControls, toString
-
-
-
-
字段详细资料
-
field_30227
private static final int field_30227
- 另请参阅:
- 常量字段值
- Mappings:
Namespace Name Mixin selector official jLazr;j:Iintermediary field_30227Lnet/minecraft/class_1382;field_30227:Inamed field_30227Lnet/minecraft/entity/ai/goal/StepAndDestroyBlockGoal;field_30227:I
-
targetBlock
private final Block targetBlock
- Mappings:
Namespace Name Mixin selector official gLazr;g:Lbyq;intermediary field_6587Lnet/minecraft/class_1382;field_6587:Lnet/minecraft/class_2248;named targetBlockLnet/minecraft/entity/ai/goal/StepAndDestroyBlockGoal;targetBlock:Lnet/minecraft/block/Block;
-
stepAndDestroyMob
private final MobEntity stepAndDestroyMob
- Mappings:
Namespace Name Mixin selector official hLazr;h:Lasz;intermediary field_6589Lnet/minecraft/class_1382;field_6589:Lnet/minecraft/class_1308;named stepAndDestroyMobLnet/minecraft/entity/ai/goal/StepAndDestroyBlockGoal;stepAndDestroyMob:Lnet/minecraft/entity/mob/MobEntity;
-
counter
private int counter
- Mappings:
Namespace Name Mixin selector official iLazr;i:Iintermediary field_6588Lnet/minecraft/class_1382;field_6588:Inamed counterLnet/minecraft/entity/ai/goal/StepAndDestroyBlockGoal;counter:I
-
-
构造器详细资料
-
StepAndDestroyBlockGoal
public StepAndDestroyBlockGoal(Block targetBlock, PathAwareEntity mob, double speed, int maxYDifference)
- Mappings:
Namespace Name Mixin selector official <init>Lazr;<init>(Lbyq;Latg;DI)Vintermediary <init>Lnet/minecraft/class_1382;<init>(Lnet/minecraft/class_2248;Lnet/minecraft/class_1314;DI)Vnamed <init>Lnet/minecraft/entity/ai/goal/StepAndDestroyBlockGoal;<init>(Lnet/minecraft/block/Block;Lnet/minecraft/entity/mob/PathAwareEntity;DI)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
-
hasAvailableTarget
private boolean hasAvailableTarget()
- Mappings:
Namespace Name Mixin selector official nLazr;n()Zintermediary method_20307Lnet/minecraft/class_1382;method_20307()Znamed hasAvailableTargetLnet/minecraft/entity/ai/goal/StepAndDestroyBlockGoal;hasAvailableTarget()Z
-
stop
public void stop()
-
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
-
tickStepping
public void tickStepping(WorldAccess world, BlockPos pos)
- Mappings:
Namespace Name Mixin selector official aLazr;a(Lbvs;Lgb;)Vintermediary method_6307Lnet/minecraft/class_1382;method_6307(Lnet/minecraft/class_1936;Lnet/minecraft/class_2338;)Vnamed tickSteppingLnet/minecraft/entity/ai/goal/StepAndDestroyBlockGoal;tickStepping(Lnet/minecraft/world/WorldAccess;Lnet/minecraft/util/math/BlockPos;)V
-
onDestroyBlock
public void onDestroyBlock(World world, BlockPos pos)
- Mappings:
Namespace Name Mixin selector official aLazr;a(Lbvr;Lgb;)Vintermediary method_6309Lnet/minecraft/class_1382;method_6309(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;)Vnamed onDestroyBlockLnet/minecraft/entity/ai/goal/StepAndDestroyBlockGoal;onDestroyBlock(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)V
-
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
-
tweakToProperPos
@Nullable private @Nullable BlockPos tweakToProperPos(BlockPos pos, BlockView world)
- Mappings:
Namespace Name Mixin selector official aLazr;a(Lgb;Lbuv;)Lgb;intermediary method_6308Lnet/minecraft/class_1382;method_6308(Lnet/minecraft/class_2338;Lnet/minecraft/class_1922;)Lnet/minecraft/class_2338;named tweakToProperPosLnet/minecraft/entity/ai/goal/StepAndDestroyBlockGoal;tweakToProperPos(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/world/BlockView;)Lnet/minecraft/util/math/BlockPos;
-
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
-
-