net.minecraft.entity.passive

public class DolphinEntity

extends WaterAnimalEntity

All mapped superinterfaces:

Nameable, EntityLike, UniquelyIdentifiable, ScoreHolder, DataTracked, ComponentsAccess, HeldItemContext, StackReferenceGetter, DebugTrackable, EntryConvertible, Attackable, ServerWaypoint, Waypoint, Targeter, EquipmentHolder, Leashable

net.minecraft.world.entity.animal.dolphin.Dolphin
net.minecraft.class_1433
net.minecraft.entity.passive.DolphinEntity

Field summary

Modifier and TypeField
private static final TrackedData<Boolean>
GOT_FISH
field_6750
HAS_FISH
private static final TrackedData<Integer>
MOISTNESS_LEVEL
field_6749
MOISTNESS
private static final TargetPredicate
SWIM_WITH_PLAYER_TARGETING
field_18101
CLOSE_PLAYER_PREDICATE
public static final int
TOTAL_AIR_SUPPLY
field_30326
MAX_AIR
private static final int
TOTAL_MOISTNESS_LEVEL
field_30327
MAX_MOISTNESS
public static final Predicate<ItemEntity>
ALLOWED_ITEMS
field_6748
CAN_TAKE
public static final float
BABY_SCALE
field_52467
BABY_SCALE_FACTOR
private static final EntityDimensions
BABY_DIMENSIONS
field_1_6112
BABY_DIMENSIONS
private static final boolean
DEFAULT_GOT_FISH
field_57606
DEFAULT_HAS_FISH
private BlockPos
treasurePos
field_56651
treasurePos

Constructor summary

ModifierConstructor
public (EntityType<? extends DolphinEntity> type, World level)

Method summary

Modifier and TypeMethod
public EntityData
finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, SpawnGroupData groupData)
method_5943(class_5425 arg0, class_1266 arg1, class_3730 arg2, class_1315 arg3)
initialize(ServerWorldAccess arg0, LocalDifficulty arg1, SpawnReason arg2, EntityData arg3)
public DolphinEntity
getBreedOffspring(ServerLevel level, AgeableMob partner)
method_5613(class_3218 arg0, class_1296 arg1)
createChild(ServerWorld arg0, PassiveEntity arg1)
public float
getAgeScale()
method_17825()
getScaleFactor()
protected void
handleAirSupply(int preTickAirSupply)
method_61456(int arg0)
tickBreathing(int arg0)
public boolean
gotFish()
method_6487()
hasFish()
public void
setGotFish(boolean gotFish)
method_6486(boolean arg0)
setHasFish(boolean hasFish)
public int
getMoistnessLevel()
method_6491()
getMoistness()
public void
setMoisntessLevel(int level)
method_6489(int arg0)
setMoistness(int moistness)
protected void
defineSynchedData(SynchedEntityData$Builder entityData)
method_5693(class_2945$class_9222 arg0)
initDataTracker(DataTracker$Builder arg0)
protected void
addAdditionalSaveData(ValueOutput output)
method_5652(class_11372 arg0)
writeCustomData(WriteView arg0)
protected void
readAdditionalSaveData(ValueInput input)
method_5749(class_11368 arg0)
readCustomData(ReadView arg0)
protected void
registerGoals()
method_5959()
initGoals()
public static DefaultAttributeContainer$Builder
createAttributes()
method_26884()
createDolphinAttributes()
protected EntityNavigation
createNavigation(Level level)
method_5965(class_1937 arg0)
createNavigation(World arg0)
public void
playAttackSound()
method_59928()
playAttackSound()
public boolean
canAttack(LivingEntity target)
method_18395(class_1309 arg0)
canTarget(LivingEntity arg0)
public int
getMaxAirSupply()
method_5748()
getMaxAir()
protected int
increaseAirSupply(int currentSupply)
method_6064(int arg0)
getNextAirOnLand(int arg0)
public int
getMaxHeadXRot()
method_5978()
getMaxLookPitchChange()
public int
getMaxHeadYRot()
method_5986()
getMaxHeadRotation()
protected boolean
canDispenserEquipIntoSlot(EquipmentSlot slot)
method_63626(class_1304 arg0)
canDispenserEquipSlot(EquipmentSlot arg0)
protected void
pickUpItem(ServerLevel level, ItemEntity entity)
method_5949(class_3218 arg0, class_1542 arg1)
loot(ServerWorld arg0, ItemEntity arg1)
public void
tick()
method_5773()
tick()
public void
handleEntityEvent(byte id)
method_5711(byte arg0)
handleStatus(byte arg0)
private void
addParticlesAroundSelf(ParticleOptions particle)
method_6492(class_2394 arg0)
spawnParticlesAround(ParticleEffect parameters)
protected ActionResult
mobInteract(Player player, InteractionHand hand)
method_5992(class_1657 arg0, class_1268 arg1)
interactMob(PlayerEntity arg0, Hand arg1)
protected SoundEvent
getHurtSound(DamageSource source)
method_6011(class_1282 arg0)
getHurtSound(DamageSource arg0)
protected SoundEvent
getDeathSound()
method_6002()
getDeathSound()
protected SoundEvent
getAmbientSound()
method_5994()
getAmbientSound()
protected SoundEvent
getSwimSplashSound()
method_5625()
getSplashSound()
protected SoundEvent
getSwimSound()
method_5737()
getSwimSound()
protected boolean
closeToNextPos()
method_6484()
isNearTarget()
public EntityDimensions
getDefaultDimensions(Pose pose)
method_55694(class_4050 arg0)
getBaseDimensions(EntityPose arg0)
protected void
travelInWater(Vec3 input, double baseGravity, boolean isFalling, double oldY)
method_76087(class_243 arg0, double arg1, boolean arg2, double arg3)
travelInWater(Vec3d arg0, double arg1, boolean arg2, double arg3)
public boolean
canBeLeashed()
method_5931()
canBeLeashed()
public PassiveEntity
getBreedOffspring(ServerLevel level, AgeableMob partner)
method_5613(class_3218 arg0, class_1296 arg1)
createChild(ServerWorld arg0, PassiveEntity arg1)
static Random
access$000(Dolphin arg0)
method_18054(class_1433 arg0)
method_18054(DolphinEntity arg0)
static Random
access$100(Dolphin arg0)
method_6488(class_1433 arg0)
method_6488(DolphinEntity arg0)
static Random
access$200(Dolphin arg0)
method_18055(class_1433 arg0)
method_18055(DolphinEntity arg0)
private static EntityData
lambda$finalizeSpawn$0()
method_63647()
method_63647()
private static boolean
lambda$static$0(ItemEntity arg0)
method_6485(class_1542 arg0)
method_6485(ItemEntity item)