Package net.minecraft.entity.ai.goal
Class DolphinJumpGoal
java.lang.Object
net.minecraft.entity.ai.goal.Goal
net.minecraft.entity.ai.goal.DiveJumpingGoal
net.minecraft.entity.ai.goal.DolphinJumpGoal
public class DolphinJumpGoal extends DiveJumpingGoal
- Mappings:
Namespace Name official awn
intermediary net/minecraft/class_1357
named net/minecraft/entity/ai/goal/DolphinJumpGoal
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.ai.goal.Goal
Goal.Control
-
Field Summary
Fields Modifier and Type Field Description private int
chance
private DolphinEntity
dolphin
private boolean
inWater
private static int[]
OFFSET_MULTIPLIERS
-
Constructor Summary
Constructors Constructor Description DolphinJumpGoal(DolphinEntity dolphin, int chance)
-
Method Summary
Modifier and Type Method Description boolean
canStart()
boolean
canStop()
private boolean
isAirAbove(BlockPos pos, int xOffset, int zOffset, int multiplier)
private boolean
isWater(BlockPos pos, int xOffset, int zOffset, int multiplier)
boolean
shouldContinue()
void
start()
void
stop()
void
tick()
Methods inherited from class net.minecraft.entity.ai.goal.Goal
getControls, setControls, toString
-
Field Details
-
OFFSET_MULTIPLIERS
private static final int[] OFFSET_MULTIPLIERS- Mappings:
Namespace Name Mixin selector official a
Lawn;a:[I
intermediary field_6474
Lnet/minecraft/class_1357;field_6474:[I
named OFFSET_MULTIPLIERS
Lnet/minecraft/entity/ai/goal/DolphinJumpGoal;OFFSET_MULTIPLIERS:[I
-
dolphin
- Mappings:
Namespace Name Mixin selector official b
Lawn;b:Lbbq;
intermediary field_6471
Lnet/minecraft/class_1357;field_6471:Lnet/minecraft/class_1433;
named dolphin
Lnet/minecraft/entity/ai/goal/DolphinJumpGoal;dolphin:Lnet/minecraft/entity/passive/DolphinEntity;
-
chance
private final int chance- Mappings:
Namespace Name Mixin selector official c
Lawn;c:I
intermediary field_6472
Lnet/minecraft/class_1357;field_6472:I
named chance
Lnet/minecraft/entity/ai/goal/DolphinJumpGoal;chance:I
-
inWater
private boolean inWater- Mappings:
Namespace Name Mixin selector official d
Lawn;d:Z
intermediary field_6473
Lnet/minecraft/class_1357;field_6473:Z
named inWater
Lnet/minecraft/entity/ai/goal/DolphinJumpGoal;inWater:Z
-
-
Constructor Details
-
DolphinJumpGoal
- Mappings:
Namespace Name Mixin selector official <init>
Lawn;<init>(Lbbq;I)V
intermediary <init>
Lnet/minecraft/class_1357;<init>(Lnet/minecraft/class_1433;I)V
named <init>
Lnet/minecraft/entity/ai/goal/DolphinJumpGoal;<init>(Lnet/minecraft/entity/passive/DolphinEntity;I)V
-
-
Method Details
-
canStart
public boolean canStart() -
isWater
- Mappings:
Namespace Name Mixin selector official a
Lawn;a(Lfx;III)Z
intermediary method_6284
Lnet/minecraft/class_1357;method_6284(Lnet/minecraft/class_2338;III)Z
named isWater
Lnet/minecraft/entity/ai/goal/DolphinJumpGoal;isWater(Lnet/minecraft/util/math/BlockPos;III)Z
-
isAirAbove
- Mappings:
Namespace Name Mixin selector official b
Lawn;b(Lfx;III)Z
intermediary method_6282
Lnet/minecraft/class_1357;method_6282(Lnet/minecraft/class_2338;III)Z
named isAirAbove
Lnet/minecraft/entity/ai/goal/DolphinJumpGoal;isAirAbove(Lnet/minecraft/util/math/BlockPos;III)Z
-
shouldContinue
public boolean shouldContinue()- Overrides:
shouldContinue
in classGoal
- Mappings:
Namespace Name Mixin selector official b
Lawx;b()Z
intermediary method_6266
Lnet/minecraft/class_1352;method_6266()Z
named shouldContinue
Lnet/minecraft/entity/ai/goal/Goal;shouldContinue()Z
-
canStop
public boolean canStop() -
start
public void start() -
stop
public void stop() -
tick
public void tick()
-