net.minecraft.entity.mob

public abstract class AbstractSlimeEntity

extends PassiveEntity

All mapped superinterfaces:

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

net.minecraft.world.entity.monster.cubemob.AbstractCubeMob
net.minecraft.class_1621
net.minecraft.entity.mob.AbstractSlimeEntity

Field summary

Modifier and TypeField
protected static final TrackedData<Integer>
ID_SIZE
field_7390
SLIME_SIZE
public static final int
MIN_SIZE
field_30496
MIN_SIZE
public static final int
MAX_SIZE
field_30497
MAX_SIZE
public static final int
MAX_NATURAL_SIZE
field_50136
field_50136
private static final boolean
DEFAULT_WAS_ON_GROUND
field_57692
DEFAULT_ON_GROUND_LAST_TICK
public float
targetSquish
field_7389
targetStretch
public float
squish
field_7388
stretch
public float
oSquish
field_7387
lastStretch
private boolean
wasOnGround
field_7391
onGroundLastTick

Constructor summary

ModifierConstructor
protected (EntityType<? extends AbstractSlimeEntity> type, World level)

Method summary

Modifier and TypeMethod
protected void
registerGoals()
method_5959()
initGoals()
protected abstract void
addBehaviourGoals()
method_1_4583()
addGoals()
protected abstract void
addTargetingGoals()
method_1_4584()
addTargets()
protected void
defineSynchedData(SynchedEntityData$Builder entityData)
method_5693(class_2945$class_9222 arg0)
initDataTracker(DataTracker$Builder arg0)
public void
setSize(int size, boolean updateHealth)
method_7161(int arg0, boolean arg1)
setSize(int size, boolean heal)
protected void
setcubeMobHealth(int actualSize)
method_1_4590(int arg0)
updateMaxHealth(int size)
public int
getSize()
method_7152()
getSize()
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)
public boolean
isTiny()
method_7157()
isSmall()
protected abstract ParticleEffect
getParticleType()
method_7162()
getParticles()
public void
tick()
method_5773()
tick()
protected void
decreaseSquish()
method_7156()
updateStretch()
protected int
getJumpDelay()
method_7154()
getTicksUntilNextJump()
public void
refreshDimensions()
method_18382()
calculateDimensions()
public void
onSyncedDataUpdated(EntityDataAccessor<?> accessor)
method_5674(class_2940<?> arg0)
onTrackedDataSet(TrackedData<?> arg0)
public EntityType<? extends AbstractSlimeEntity>
getType()
method_5864()
getType()
public void
remove(Entity$RemovalReason reason)
method_5650(class_1297$class_5529 arg0)
remove(Entity$RemovalReason arg0)
protected void
setUpSplitCube(AbstractCubeMob cubeMob, int halfSize, float xd, float zd)
method_1_4589(class_1621 arg0, int arg1, float arg2, float arg3)
initializeSplitOffspring(AbstractSlimeEntity slime, int size, float dx, float dz)
protected int
getSplitCount()
method_1_4586()
sampleFecundity()
public void
push(Entity entity)
method_5697(class_1297 arg0)
pushAwayFrom(Entity arg0)
public void
playerTouch(Player player)
method_5694(class_1657 arg0)
onPlayerCollision(PlayerEntity arg0)
protected void
dealDamage(LivingEntity target)
method_7155(class_1309 arg0)
damage(LivingEntity target)
protected Vec3d
getPassengerAttachmentPoint(Entity passenger, EntityDimensions dimensions, float scale)
method_52533(class_1297 arg0, class_4048 arg1, float arg2)
getPassengerAttachmentPos(Entity arg0, EntityDimensions arg1, float arg2)
protected boolean
isDealsDamage()
method_7163()
canAttack()
protected float
getAttackDamage()
method_7158()
getDamageAmount()
public EntityDimensions
getDefaultDimensions(Pose pose)
method_55694(class_4050 arg0)
getBaseDimensions(EntityPose arg0)
public void
jumpFromGround()
method_6043()
jump()
public SoundCategory
getSoundSource()
method_5634()
getSoundCategory()
protected float
getSoundVolume()
method_6107()
getSoundVolume()
public int
getMaxHeadXRot()
method_5978()
getMaxLookPitchChange()
protected boolean
doPlayJumpSound()
method_7159()
makesJumpSound()
public float
getSoundPitch()
method_24353()
getJumpSoundPitch()
protected abstract SoundEvent
getJumpSound()
method_7153()
getJumpSound()
protected abstract SoundEvent
getHurtSound(DamageSource source)
method_6011(class_1282 arg0)
getHurtSound(DamageSource arg0)
protected abstract SoundEvent
getDeathSound()
method_6002()
getDeathSound()
protected abstract SoundEvent
getSquishSound()
method_7160()
getSquishSound()
public AbstractSlimeEntity
getBreedOffspring(ServerLevel level, AgeableMob partner)
method_5613(class_3218 arg0, class_1296 arg1)
createChild(ServerWorld arg0, PassiveEntity arg1)
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)
protected void
setSpawnSize(ServerLevelAccessor level, DifficultyInstance difficulty)
method_1_4588(class_5425 arg0, class_1266 arg1)
setInitialSize(ServerWorldAccess world, LocalDifficulty difficulty)
public PassiveEntity
getBreedOffspring(ServerLevel level, AgeableMob partner)
method_5613(class_3218 arg0, class_1296 arg1)
createChild(ServerWorld arg0, PassiveEntity arg1)
private void
lambda$remove$0(int arg0, float arg1, float arg2, AbstractCubeMob arg3)
method_1_4587(int arg0, float arg1, float arg2, class_1621 arg3)
method_1_4587(int arg0, float arg1, float arg2, AbstractSlimeEntity offspring)