net.minecraft.world.entity.animal

public class Turtle

extends Animal

All mapped superinterfaces:

SyncedDataHolder, Nameable, EntityAccess, ScoreHolder, Attackable, EquipmentUser, Leashable, Targeting

ciy
net.minecraft.world.entity.animal.Turtle
net.minecraft.class_1481
net.minecraft.entity.passive.TurtleEntity
net.minecraft.world.entity.animal.EntityTurtle

Field summary

Modifier and TypeField
private static final EntityDataAccessor<BlockPos>
ca
HOME_POS
field_6920
HOME_POS
private static final EntityDataAccessor<Boolean>
cb
HAS_EGG
field_6919
HAS_EGG
private static final EntityDataAccessor<Boolean>
cd
LAYING_EGG
field_6923
DIGGING_SAND
private static final EntityDataAccessor<BlockPos>
ce
TRAVEL_POS
field_6922
TRAVEL_POS
private static final EntityDataAccessor<Boolean>
cf
GOING_HOME
field_6924
LAND_BOUND
private static final EntityDataAccessor<Boolean>
cg
TRAVELLING
field_6925
ACTIVELY_TRAVELING
private static final float
ch
BABY_SCALE
field_47774
BABY_SCALE
private static final EntityDimensions
ci
BABY_DIMENSIONS
field_47775
BABY_BASE_DIMENSIONS
int
cj
layEggCounter
field_6918
sandDiggingCounter
public static final TargetingConditions$Selector
bZ
BABY_ON_LAND_SELECTOR
field_6921
BABY_TURTLE_ON_LAND_FILTER

Constructor summary

ModifierConstructor
public (EntityType<? extends Turtle> arg0, Level arg1)

Method summary

Modifier and TypeMethod
public void
h(jh arg0)
setHomePos(BlockPos arg0)
method_6683(class_2338 arg0)
setHomePos(BlockPos pos)
BlockPos
go()
getHomePos()
method_6693()
getHomePos()
void
i(jh arg0)
setTravelPos(BlockPos arg0)
method_6699(class_2338 arg0)
setTravelPos(BlockPos pos)
BlockPos
gp()
getTravelPos()
method_6687()
getTravelPos()
public boolean
p()
hasEgg()
method_6679()
hasEgg()
void
x(boolean arg0)
setHasEgg(boolean arg0)
method_6680(boolean arg0)
setHasEgg(boolean hasEgg)
public boolean
t()
isLayingEgg()
method_6695()
isDiggingSand()
void
y(boolean arg0)
setLayingEgg(boolean arg0)
method_6676(boolean arg0)
setDiggingSand(boolean diggingSand)
boolean
gq()
isGoingHome()
method_6684()
isLandBound()
void
z(boolean arg0)
setGoingHome(boolean arg0)
method_6697(boolean arg0)
setLandBound(boolean landBound)
boolean
gr()
isTravelling()
method_6691()
isActivelyTraveling()
void
A(boolean arg0)
setTravelling(boolean arg0)
method_6696(boolean arg0)
setActivelyTraveling(boolean traveling)
protected void
a(alg$a arg0)
defineSynchedData(SynchedEntityData$Builder arg0)
method_5693(class_2945$class_9222 arg0)
initDataTracker(DataTracker$Builder arg0)
public void
b(ux arg0)
addAdditionalSaveData(CompoundTag arg0)
method_5652(class_2487 arg0)
writeCustomDataToNbt(NbtCompound arg0)
public void
a(ux arg0)
readAdditionalSaveData(CompoundTag arg0)
method_5749(class_2487 arg0)
readCustomDataFromNbt(NbtCompound arg0)
public SpawnGroupData
a(dhz arg0, bth arg1, bvq arg2, bwz arg3)
finalizeSpawn(ServerLevelAccessor arg0, DifficultyInstance arg1, EntitySpawnReason arg2, SpawnGroupData arg3)
method_5943(class_5425 arg0, class_1266 arg1, class_3730 arg2, class_1315 arg3)
initialize(ServerWorldAccess arg0, LocalDifficulty arg1, SpawnReason arg2, EntityData arg3)
public static boolean
c(bvr<ciy> arg0, dhj arg1, bvq arg2, jh arg3, bam arg4)
checkTurtleSpawnRules(EntityType<Turtle> arg0, LevelAccessor arg1, EntitySpawnReason arg2, BlockPos arg3, RandomSource arg4)
method_20671(class_1299<class_1481> arg0, class_1936 arg1, class_3730 arg2, class_2338 arg3, class_5819 arg4)
canSpawn(EntityType<TurtleEntity> type, WorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random)
protected void
B()
registerGoals()
method_5959()
initGoals()
public static AttributeSupplier$Builder
x()
createAttributes()
method_26896()
createTurtleAttributes()
public boolean
cJ()
isPushedByFluid()
method_5675()
isPushedByFluids()
public int
Q()
getAmbientSoundInterval()
method_5970()
getMinAmbientSoundDelay()
protected SoundEvent
u()
getAmbientSound()
method_5994()
getAmbientSound()
protected void
f(float arg0)
playSwimSound(float arg0)
method_5734(float arg0)
playSwimSound(float arg0)
protected SoundEvent
aV()
getSwimSound()
method_5737()
getSwimSound()
protected SoundEvent
e(bua arg0)
getHurtSound(DamageSource arg0)
method_6011(class_1282 arg0)
getHurtSound(DamageSource arg0)
protected SoundEvent
o_()
getDeathSound()
method_6002()
getDeathSound()
protected void
b(jh arg0, dxv arg1)
playStepSound(BlockPos arg0, BlockState arg1)
method_5712(class_2338 arg0, class_2680 arg1)
playStepSound(BlockPos arg0, BlockState arg1)
public boolean
gv()
canFallInLove()
method_6482()
canEat()
protected float
aU()
nextStep()
method_5867()
calculateNextStepSoundDistance()
public float
ej()
getAgeScale()
method_17825()
getScaleFactor()
protected PathNavigation
b(dhi arg0)
createNavigation(Level arg0)
method_5965(class_1937 arg0)
createNavigation(World arg0)
public AgeableMob
a(ash arg0, bvb arg1)
getBreedOffspring(ServerLevel arg0, AgeableMob arg1)
method_5613(class_3218 arg0, class_1296 arg1)
createChild(ServerWorld arg0, PassiveEntity arg1)
public boolean
j(cxp arg0)
isFood(ItemStack arg0)
method_6481(class_1799 arg0)
isBreedingItem(ItemStack arg0)
public float
a(jh arg0, dhl arg1)
getWalkTargetValue(BlockPos arg0, LevelReader arg1)
method_6144(class_2338 arg0, class_4538 arg1)
getPathfindingFavor(BlockPos arg0, WorldView arg1)
public void
d_()
aiStep()
method_6007()
tickMovement()
protected void
i()
ageBoundaryReached()
method_5619()
onGrowUp()
public void
a_(fby arg0)
travel(Vec3 arg0)
method_6091(class_243 arg0)
travel(Vec3d arg0)
public boolean
y()
canBeLeashed()
method_5931()
canBeLeashed()
public void
a(ash arg0, bwf arg1)
thunderHit(ServerLevel arg0, LightningBolt arg1)
method_5800(class_3218 arg0, class_1538 arg1)
onStruckByLightning(ServerWorld arg0, LightningEntity arg1)
public EntityDimensions
e(bws arg0)
getDefaultDimensions(Pose arg0)
method_55694(class_4050 arg0)
getBaseDimensions(EntityPose arg0)