类 RamTarget
java.lang.Object
net.minecraft.world.entity.ai.behavior.Behavior<Goat>
net.minecraft.world.entity.ai.behavior.RamTarget
- 所有已实现的接口:
BehaviorControl<Goat>
-
嵌套类概要
从类继承的嵌套类/接口 net.minecraft.world.entity.ai.behavior.Behavior
Behavior.Status
-
字段概要
字段修饰符和类型字段说明private final Function<Goat,
SoundEvent> private final Function<Goat,
SoundEvent> private final ToDoubleFunction<Goat>
private final Function<Goat,
UniformInt> static final float
private Vec3
private final TargetingConditions
private final float
static final int
从类继承的字段 net.minecraft.world.entity.ai.behavior.Behavior
DEFAULT_DURATION, entryCondition
-
构造器概要
构造器构造器说明RamTarget
(Function<Goat, UniformInt> pGetTimeBetweenRams, TargetingConditions pRamTargeting, float pSpeed, ToDoubleFunction<Goat> pGetKnockbackForce, Function<Goat, SoundEvent> pGetImpactSound, Function<Goat, SoundEvent> pGetHornBreakSound) -
方法概要
修饰符和类型方法说明protected boolean
canStillUse
(ServerLevel pLevel, Goat pEntity, long pGameTime) protected boolean
checkExtraStartConditions
(ServerLevel pLevel, Goat pOwner) protected void
finishRam
(ServerLevel pLevel, Goat pOwner) private boolean
hasRammedHornBreakingBlock
(ServerLevel pLevel, Goat pOwner) protected void
start
(ServerLevel pLevel, Goat pEntity, long pGameTime) protected void
tick
(ServerLevel pLevel, Goat pOwner, long pGameTime) 从类继承的方法 net.minecraft.world.entity.ai.behavior.Behavior
debugString, doStop, getStatus, hasRequiredMemories, stop, tickOrStop, timedOut, tryStart
-
字段详细资料
-
构造器详细资料
-
RamTarget
public RamTarget(Function<Goat, UniformInt> pGetTimeBetweenRams, TargetingConditions pRamTargeting, float pSpeed, ToDoubleFunction<Goat> pGetKnockbackForce, Function<Goat, SoundEvent> pGetImpactSound, Function<Goat, SoundEvent> pGetHornBreakSound)
-
-
方法详细资料