net.minecraft.world.entity.animal

public class Turtle

extends Animal

All mapped superinterfaces:

Nameable, EntityAccess, CommandSource

bew
net.minecraft.world.entity.animal.Turtle
net.minecraft.class_1481
net.minecraft.entity.passive.TurtleEntity
net.minecraft.src.C_909_
net.minecraft.world.entity.animal.EntityTurtle

Field summary

Modifier and TypeField
private static final EntityDataAccessor<BlockPos>
bV
HOME_POS
field_6920
HOME_POS
f_30123_
private static final EntityDataAccessor<Boolean>
bW
HAS_EGG
field_6919
HAS_EGG
f_30124_
private static final EntityDataAccessor<Boolean>
bX
LAYING_EGG
field_6923
DIGGING_SAND
f_30125_
private static final EntityDataAccessor<BlockPos>
bY
TRAVEL_POS
field_6922
TRAVEL_POS
f_30126_
private static final EntityDataAccessor<Boolean>
bZ
GOING_HOME
field_6924
LAND_BOUND
f_30127_
private static final EntityDataAccessor<Boolean>
ca
TRAVELLING
field_6925
ACTIVELY_TRAVELLING
f_30128_
public static final Ingredient
bS
FOOD_ITEMS
field_28406
BREEDING_ITEM
f_149066_
int
cb
layEggCounter
field_6918
sandDiggingCounter
f_30129_
public static final Predicate<LivingEntity>
bT
BABY_ON_LAND_SELECTOR
field_6921
BABY_TURTLE_ON_LAND_FILTER
f_30122_

Constructor summary

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

Method summary

Modifier and TypeMethod
public void
g(gg arg0)
setHomePos(BlockPos arg0)
method_6683(class_2338 arg0)
setHomePos(BlockPos pos)
m_30219_(C_4675_ arg0)
setHomePos(BlockPosition arg0)
BlockPos
fw()
getHomePos()
method_6693()
getHomePos()
m_30208_()
getHomePos()
void
h(gg arg0)
setTravelPos(BlockPos arg0)
method_6699(class_2338 arg0)
setTravelPos(BlockPos pos)
m_30223_(C_4675_ arg0)
setTravelPos(BlockPosition arg0)
BlockPos
fx()
getTravelPos()
method_6687()
getTravelPos()
m_30209_()
getTravelPos()
public boolean
p()
hasEgg()
method_6679()
hasEgg()
m_30205_()
hasEgg()
void
v(boolean arg0)
setHasEgg(boolean arg0)
method_6680(boolean arg0)
setHasEgg(boolean hasEgg)
m_30234_(boolean arg0)
setHasEgg(boolean arg0)
public boolean
t()
isLayingEgg()
method_6695()
isDiggingSand()
m_30206_()
void
w(boolean arg0)
setLayingEgg(boolean arg0)
method_6676(boolean arg0)
setDiggingSand(boolean diggingSand)
m_30236_(boolean arg0)
boolean
fD()
isGoingHome()
method_6684()
isLandBound()
m_30211_()
void
x(boolean arg0)
setGoingHome(boolean arg0)
method_6697(boolean arg0)
setLandBound(boolean landBound)
m_30238_(boolean arg0)
boolean
fE()
isTravelling()
method_6691()
isActivelyTravelling()
m_30212_()
void
y(boolean arg0)
setTravelling(boolean arg0)
method_6696(boolean arg0)
setActivelyTravelling(boolean travelling)
m_30240_(boolean arg0)
protected void
a_()
defineSynchedData()
method_5693()
initDataTracker()
m_8097_()
initDatawatcher()
public void
b(na arg0)
addAdditionalSaveData(CompoundTag arg0)
method_5652(class_2487 arg0)
writeCustomDataToNbt(NbtCompound arg0)
m_7380_(C_4917_ arg0)
saveData(NBTTagCompound arg0)
public void
a(na arg0)
readAdditionalSaveData(CompoundTag arg0)
method_5749(class_2487 arg0)
readCustomDataFromNbt(NbtCompound arg0)
m_7378_(C_4917_ arg0)
loadData(NBTTagCompound arg0)
public SpawnGroupData
a(bxd arg0, ary arg1, atx arg2, aul arg3, na arg4)
finalizeSpawn(ServerLevelAccessor arg0, DifficultyInstance arg1, MobSpawnType arg2, SpawnGroupData arg3, CompoundTag arg4)
method_5943(class_5425 arg0, class_1266 arg1, class_3730 arg2, class_1315 arg3, class_2487 arg4)
initialize(ServerWorldAccess arg0, LocalDifficulty arg1, SpawnReason arg2, EntityData arg3, NbtCompound arg4)
m_6518_(C_1618_ p_30154_, C_469_ p_30155_, C_529_ p_30156_, C_542_ p_30157_, C_4917_ arg4)
prepare(WorldAccess arg0, DifficultyDamageScaler arg1, EnumMobSpawn arg2, GroupDataEntity arg3, NBTTagCompound arg4)
public static boolean
c(atj<bew> arg0, bwq arg1, atx arg2, gg arg3, Random arg4)
checkTurtleSpawnRules(EntityType<Turtle> arg0, LevelAccessor arg1, MobSpawnType arg2, BlockPos arg3, Random arg4)
method_20671(class_1299<class_1481> arg0, class_1936 arg1, class_3730 arg2, class_2338 arg3, Random arg4)
canSpawn(EntityType<TurtleEntity> type, WorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random)
m_30178_(C_513_<C_909_> p_30179_, C_1598_ p_30180_, C_529_ p_30181_, C_4675_ p_30182_, Random p_30183_)
protected void
v()
registerGoals()
method_5959()
initGoals()
m_8099_()
initPathfinder()
public static AttributeSupplier$Builder
fv()
createAttributes()
method_26896()
createTurtleAttributes()
m_30207_()
public boolean
ck()
isPushedByFluid()
method_5675()
isPushedByFluids()
m_6063_()
public boolean
dr()
canBreatheUnderwater()
method_6094()
canBreatheInWater()
m_6040_()
public MobType
ek()
getMobType()
method_6046()
getGroup()
m_6336_()
getMonsterType()
public int
J()
getAmbientSoundInterval()
method_5970()
getMinAmbientSoundDelay()
m_8100_()
protected SoundEvent
q()
getAmbientSound()
method_5994()
getAmbientSound()
m_7515_()
getSoundAmbient()
protected void
d(float arg0)
playSwimSound(float arg0)
method_5734(float arg0)
playSwimSound(float arg0)
m_5625_(float arg0)
protected SoundEvent
aA()
getSwimSound()
method_5737()
getSwimSound()
m_5501_()
getSoundSwim()
protected SoundEvent
c(asp arg0)
getHurtSound(DamageSource arg0)
method_6011(class_1282 arg0)
getHurtSound(DamageSource arg0)
m_7975_(C_489_ arg0)
getSoundHurt(DamageSource arg0)
protected SoundEvent
v_()
getDeathSound()
method_6002()
getDeathSound()
m_5592_()
getSoundDeath()
protected void
b(gg arg0, cks arg1)
playStepSound(BlockPos arg0, BlockState arg1)
method_5712(class_2338 arg0, class_2680 arg1)
playStepSound(BlockPos arg0, BlockState arg1)
m_7355_(C_4675_ p_30174_, C_2064_ arg1)
public boolean
fy()
canFallInLove()
method_6482()
canEat()
m_5957_()
protected float
az()
nextStep()
method_5867()
calculateNextStepSoundDistance()
m_6059_()
public float
dz()
getScale()
method_17825()
getScaleFactor()
m_6134_()
protected PathNavigation
a(bwp arg0)
createNavigation(Level arg0)
method_5965(class_1937 arg0)
createNavigation(World arg0)
m_6037_(C_1596_ arg0)
public AgeableMob
a(abr arg0, atd arg1)
getBreedOffspring(ServerLevel arg0, AgeableMob arg1)
method_5613(class_3218 arg0, class_1296 arg1)
createChild(ServerWorld arg0, PassiveEntity arg1)
m_142606_(C_12_ p_149069_, C_141062_ arg1)
createChild(WorldServer arg0, EntityAgeable arg1)
public boolean
n(bqp arg0)
isFood(ItemStack arg0)
method_6481(class_1799 arg0)
isBreedingItem(ItemStack arg0)
m_6898_(C_1391_ arg0)
public float
a(gg arg0, bws arg1)
getWalkTargetValue(BlockPos arg0, LevelReader arg1)
method_6144(class_2338 arg0, class_4538 arg1)
getPathfindingFavor(BlockPos arg0, WorldView arg1)
m_5610_(C_4675_ p_30160_, C_1599_ arg1)
public void
u_()
aiStep()
method_6007()
tickMovement()
m_8107_()
movementTick()
protected void
n()
ageBoundaryReached()
method_5619()
onGrowUp()
m_142669_()
public void
g(dna arg0)
travel(Vec3 arg0)
method_6091(class_243 arg0)
travel(Vec3d arg0)
m_7023_(C_3046_ arg0)
public boolean
a(bkd arg0)
canBeLeashed(Player arg0)
method_5931(class_1657 arg0)
canBeLeashedBy(PlayerEntity arg0)
m_6573_(C_1141_ arg0)
public void
a(abr arg0, ats arg1)
thunderHit(ServerLevel arg0, LightningBolt arg1)
method_5800(class_3218 arg0, class_1538 arg1)
onStruckByLightning(ServerWorld arg0, LightningEntity arg1)
m_8038_(C_12_ p_30141_, C_523_ arg1)
onLightningStrike(WorldServer arg0, EntityLightning arg1)