net.minecraft.entity.mob

public class SlimeEntity

extends MobEntity implements Monster

All mapped superinterfaces:

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

net.minecraft.world.entity.monster.Slime
net.minecraft.class_1621
net.minecraft.entity.mob.SlimeEntity

Field summary

Modifier and TypeField
private 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
public (EntityType<? extends SlimeEntity> type, World level)

Method summary

Modifier and TypeMethod
protected void
registerGoals()
method_5959()
initGoals()
public SoundCategory
getSoundSource()
method_5634()
getSoundCategory()
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)
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 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 SlimeEntity>
getType()
method_5864()
getType()
public void
remove(Entity$RemovalReason reason)
method_5650(class_1297$class_5529 arg0)
remove(Entity$RemovalReason arg0)
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()
protected SoundEvent
getHurtSound(DamageSource source)
method_6011(class_1282 arg0)
getHurtSound(DamageSource arg0)
protected SoundEvent
getDeathSound()
method_6002()
getDeathSound()
protected SoundEvent
getSquishSound()
method_7160()
getSquishSound()
public static boolean
checkSlimeSpawnRules(EntityType<Slime> type, LevelAccessor level, EntitySpawnReason spawnReason, BlockPos pos, RandomSource random)
method_20685(class_1299<class_1621> arg0, class_1936 arg1, class_3730 arg2, class_2338 arg3, class_5819 arg4)
canSpawn(EntityType<SlimeEntity> type, WorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random)
protected float
getSoundVolume()
method_6107()
getSoundVolume()
public int
getMaxHeadXRot()
method_5978()
getMaxLookPitchChange()
protected boolean
doPlayJumpSound()
method_7159()
makesJumpSound()
public void
jumpFromGround()
method_6043()
jump()
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)
private float
getSoundPitch()
method_24353()
getJumpSoundPitch()
protected SoundEvent
getJumpSound()
method_7153()
getJumpSound()
public EntityDimensions
getDefaultDimensions(Pose pose)
method_55694(class_4050 arg0)
getBaseDimensions(EntityPose arg0)
private void
lambda$remove$0(int arg0, float arg1, float arg2, Slime arg3)
method_63653(int arg0, float arg1, float arg2, class_1621 arg3)
method_63653(int arg0, float arg1, float arg2, SlimeEntity newSlime)
private boolean
lambda$registerGoals$0(LivingEntity arg0, ServerLevel arg1)
method_18451(class_1309 arg0, class_3218 arg1)
method_18451(LivingEntity target, ServerWorld world)