Package net.minecraft.entity.monster
Class EntitySlime
- java.lang.Object
-
- net.zxmushroom63.plugins.BaseData
-
- net.zxmushroom63.plugins.PluginData
-
- net.minecraft.entity.Entity
-
- net.minecraft.entity.EntityLivingBase
-
- net.minecraft.entity.EntityLiving
-
- net.minecraft.entity.monster.EntitySlime
-
- Direct Known Subclasses:
EntityMagmaCube
public class EntitySlime extends EntityLiving implements IMob
+ This portion of EaglercraftX contains deobfuscated Minecraft 1.8 source code. Minecraft 1.8.8 bytecode is (c) 2015 Mojang AB. "Do not distribute!" Mod Coder Pack v9.18 deobfuscation configs are (c) Copyright by the MCP Team EaglercraftX 1.8 patch files are (c) 2022-2023 LAX1DUDE. All Rights Reserved. WITH THE EXCEPTION OF PATCH FILES, MINIFIED JAVASCRIPT, AND ALL FILES NORMALLY FOUND IN AN UNMODIFIED MINECRAFT RESOURCE PACK, YOU ARE NOT ALLOWED TO SHARE, DISTRIBUTE, OR REPURPOSE ANY FILE USED BY OR PRODUCED BY THE SOFTWARE IN THIS REPOSITORY WITHOUT PRIOR PERMISSION FROM THE PROJECT AUTHOR. NOT FOR COMMERCIAL OR MALICIOUS USE (please read the 'LICENSE' file this repo's root directory for more info)
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.minecraft.entity.EntityLiving
EntityLiving.SpawnPlacementType
-
Nested classes/interfaces inherited from class net.zxmushroom63.plugins.BaseData
BaseData.BooleanCallback, BaseData.BooleanCallbackArr, BaseData.DataBooleanCallback, BaseData.DataBooleanCallbackArr, BaseData.DataDoubleCallback, BaseData.DataDoubleCallbackArr, BaseData.DataFloatCallback, BaseData.DataFloatCallbackArr, BaseData.DataIntCallback, BaseData.DataIntCallbackArr, BaseData.DataObjectCallback, BaseData.DataObjectCallbackArr, BaseData.DataStringCallback, BaseData.DataStringCallbackArr, BaseData.DataVoidCallback, BaseData.DoubleCallback, BaseData.DoubleCallbackArr, BaseData.FloatCallback, BaseData.FloatCallbackArr, BaseData.IntCallback, BaseData.IntCallbackArr, BaseData.ObjectCallback, BaseData.ObjectCallbackArr, BaseData.StringCallback, BaseData.StringCallbackArr, BaseData.VoidCallback
-
-
Field Summary
Fields Modifier and Type Field Description float
prevSquishFactor
float
squishAmount
float
squishFactor
-
Fields inherited from class net.minecraft.entity.EntityLiving
equipmentDropChances, experienceValue, livingSoundTime
-
Fields inherited from class net.minecraft.entity.EntityLivingBase
arrowHitTimer, attackedAtYaw, attackingPlayer, cameraPitch, dead, deathTime, entityAge, field_70741_aB, field_70769_ao, field_70770_ap, hurtTime, isJumping, isSwingInProgress, jumpMovementFactor, lastDamage, limbSwing, limbSwingAmount, maxHurtResistantTime, maxHurtTime, movedDistance, moveForward, moveStrafing, newPosRotationIncrements, newPosX, newPosY, newPosZ, newRotationPitch, newRotationYaw, onGroundSpeedFactor, prevCameraPitch, prevLimbSwingAmount, prevMovedDistance, prevOnGroundSpeedFactor, prevRenderYawOffset, prevRotationYawHead, prevSwingProgress, randomYawVelocity, recentlyHit, renderYawOffset, rotationYawHead, scoreValue, swingProgress, swingProgressInt
-
Fields inherited from class net.minecraft.entity.Entity
addedToChunk, chunkCoordX, chunkCoordY, chunkCoordZ, dataWatcher, dimension, distanceWalkedModified, distanceWalkedOnStepModified, entityCollisionReduction, entityUniqueID, fallDistance, field_181016_an, field_181017_ao, field_181018_ap, fireResistance, firstUpdate, forceSpawn, height, hurtResistantTime, ignoreFrustumCheck, inPortal, inWater, isAirBorne, isCollided, isCollidedHorizontally, isCollidedVertically, isDead, isImmuneToFire, isInWeb, lastTickPosX, lastTickPosY, lastTickPosZ, motionX, motionY, motionZ, noClip, onGround, portalCounter, posX, posY, posZ, prevDistanceWalkedModified, preventEntitySpawning, prevPosX, prevPosY, prevPosZ, prevRotationPitch, prevRotationYaw, rand, renderDistanceWeight, riddenByEntity, ridingEntity, rotationPitch, rotationYaw, serverPosX, serverPosY, serverPosZ, stepHeight, ticksExisted, timeUntilPortal, velocityChanged, width, worldObj
-
Fields inherited from interface net.minecraft.entity.monster.IMob
mobSelector, VISIBLE_MOB_SELECTOR
-
-
Constructor Summary
Constructors Constructor Description EntitySlime(World worldIn)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
alterSquishAmount()
void
applyEntityCollision(Entity entity)
+ Applies a velocity to each of the entities pushing them away from each other.protected boolean
canDamagePlayer()
+ Indicates weather the slime is able to damage the player (based upon the slime's size)protected EntitySlime
createInstance()
protected void
entityInit()
protected void
func_175451_e(EntityLivingBase parEntityLivingBase)
protected int
getAttackStrength()
+ Gets the amount of damage dealt to the player when "attacked" by the slime.boolean
getCanSpawnHere()
+ Checks if the entity's current position is a valid location to spawn this entity.protected java.lang.String
getDeathSound()
+ Returns the sound this mob makes on death.protected Item
getDropItem()
float
getEyeHeight()
protected java.lang.String
getHurtSound()
+ Returns the sound this mob makes when it is hurt.protected int
getJumpDelay()
+ Gets the amount of time the slime needs to wait between jumps.protected java.lang.String
getJumpSound()
+ Returns the name of the sound played when the slime jumps.protected EnumParticleTypes
getParticleType()
int
getSlimeSize()
+ Returns the size of the slime.protected float
getSoundVolume()
+ Returns the volume for the sounds this mob makes.int
getVerticalFaceSpeed()
+ The speed it takes to move the entityliving's rotationPitch through the faceEntity method.protected void
jump()
+ Causes this entity to do an upwards motion (jumping).protected boolean
makesSoundOnJump()
+ Returns true if the slime makes a sound when it jumps (based upon the slime's size)protected boolean
makesSoundOnLand()
+ Returns true if the slime makes a sound when it lands after a jump (based upon the slime's size)void
onCollideWithPlayer(EntityPlayer entityplayer)
+ Called by a player entity when they collide with an entityvoid
onDataWatcherUpdate(int i)
IEntityLivingData
onInitialSpawn(DifficultyInstance difficultyinstance, IEntityLivingData ientitylivingdata)
+ Called only once on an entity when first time spawned, via egg, mob spawner, natural spawning etc, but not called when entity is reloaded from nbt.void
onUpdate()
+ Called to update the entity's position/logic.void
readEntityFromNBT(NBTTagCompound nbttagcompound)
+ (abstract) Protected helper method to read subclass entity data from NBT.protected void
setSlimeSize(int size)
void
writeEntityToNBT(NBTTagCompound nbttagcompound)
+ (abstract) Protected helper method to write subclass entity data to NBT.-
Methods inherited from class net.minecraft.entity.EntityLiving
allowLeashing, applyEntityAttributes, canAttackClass, canBeSteered, canDespawn, canPickUpLoot, clearLeashed, despawnEntity, dropEquipment, dropFewItems, eatGrassBonus, enablePersistence, faceEntity, func_110146_f, func_175448_a, getArmorItemForSlot, getArmorPosition, getAttackTarget, getCurrentArmor, getEquipmentInSlot, getExperiencePoints, getHeldItem, getInventory, getLeashed, getLeashedToEntity, getLivingSound, getMaxFallHeight, getMaxSpawnedInChunk, getRenderSizeModifier, getTalkInterval, handleStatusUpdate, interact, interactFirst, isAIDisabled, isNoDespawnRequired, isNotColliding, isServerWorld, onEntityUpdate, playLivingSound, replaceItemInInventory, setAIMoveSpeed, setAttackTarget, setCanPickUpLoot, setCurrentItemOrArmor, setEnchantmentBasedOnDifficulty, setEquipmentBasedOnDifficulty, setEquipmentDropChance, setLeashedToEntity, setMoveForward, setNoAI, spawnExplosionParticle, updateAITasks, updateEntityActionState, updateEquipmentIfNeeded, updateLeashedState
-
Methods inherited from class net.minecraft.entity.EntityLivingBase
addPotionEffect, addRandomDrop, applyArmorCalculations, applyPotionDamageCalculations, attackEntityAsMob, attackEntityFrom, canBeCollidedWith, canBePushed, canBreatheUnderwater, canDropLoot, canEntityBeSeen, clearActivePotions, collideWithEntity, collideWithNearbyEntities, damageArmor, damageEntity, decreaseAirSupply, dismountEntity, fall, func_181013_g, func_94060_bK, getAbsorptionAmount, getActivePotionEffect, getActivePotionEffects, getAge, getAIMoveSpeed, getAITarget, getAlwaysRenderNameTagForRender, getArrowCountInEntity, getAttributeMap, getCombatTracker, getCreatureAttribute, getEntityAttribute, getFallSoundString, getHealth, getJumpUpwardsMotion, getLastAttacker, getLastAttackerTime, getLook, getLookVec, getMaxHealth, getRevengeTimer, getRNG, getRotationYawHead, getSoundPitch, getSwingProgress, getTeam, getTotalArmorValue, handleJumpLava, heal, isChild, isEntityAlive, isEntityUndead, isMovementBlocked, isOnLadder, isOnSameTeam, isOnTeam, isPlayer, isPlayerSleeping, isPotionActive, isPotionActive, isPotionApplicable, kill, knockBack, loadPluginData, makePluginData, markPotionsDirty, mountEntity, moveEntityWithHeading, onChangedPotionEffect, onDeath, onDeathUpdate, onFinishedPotionEffect, onItemPickup, onKillCommand, onLivingUpdate, onNewPotionEffect, performHurtAnimation, removePotionEffect, removePotionEffectClient, renderBrokenItemStack, resetPotionEffectMetadata, sendEndCombat, sendEnterCombat, setAbsorptionAmount, setArrowCountInEntity, setBeenAttacked, setHealth, setJumping, setLastAttacker, setPositionAndRotation2, setRevengeTarget, setRotationYawHead, setSprinting, swingItem, updateAITick, updateArmSwingProgress, updateFallState, updatePotionEffects, updatePotionMetadata, updateRidden
-
Methods inherited from class net.minecraft.entity.Entity
addChatMessage, addEntityCrashInfo, addToPlayerScore, addVelocity, applyEnchantments, canAttackWithItem, canCommandSenderUseCommand, canRenderOnFire, canTriggerWalking, clientUpdateEntityNBT, copyDataFromOld, copyLocationAndAnglesFrom, createRunningParticles, dealFireDamage, doBlockCollisions, doesEntityNotTriggerPressurePlate, dropItem, dropItemWithOffset, entityDropItem, equals, extinguish, fromNBT, func_181012_aH, func_181014_aG, func_181015_d, getAir, getAlwaysRenderNameTag, getBrightness, getBrightnessForRender, getCollisionBorderSize, getCollisionBoundingBox, getCollisionBox, getCommandSenderEntity, getCustomNameTag, getDataWatcher, getDisplayName, getDistance, getDistanceSq, getDistanceSq, getDistanceSqToCenter, getDistanceSqToEntity, getDistanceToEntity, getEntityBoundingBox, getEntityId, getEntityString, getEntityWorld, getExplosionResistance, getFlag, getHorizontalFacing, getHoverEvent, getMaxInPortalTime, getMountedYOffset, getName, getNBTTagCompound, getParts, getPortalCooldown, getPosition, getPositionEyes, getPositionVector, getSplashSound, getSwimSound, getUniqueID, getVectorForRotation, getYOffset, handleWaterMovement, hasCustomName, hashCode, hitByEntity, interactAt, isBurning, isEating, isEntityEqual, isEntityInsideOpaqueBlock, isEntityInvulnerable, isImmuneToExplosions, isImmuneToFire, isInLava, isInRangeToRender3d, isInRangeToRenderDist, isInsideOfMaterial, isInvisible, isInvisibleToPlayer, isInWater, isOffsetPositionInLiquid, isOutsideBorder, isPushedByWater, isRiding, isSilent, isSneaking, isSprinting, isWet, moveEntity, moveFlying, moveToBlockPosAndAngles, newDoubleNBTList, newFloatNBTList, onChunkLoad, onKillEntity, onStruckByLightning, playSound, playStepSound, preparePlayerToSpawn, pushOutOfBlocks, rayTrace, readFromNBT, resetHeight, sendCommandFeedback, setAir, setAlwaysRenderNameTag, setAngles, setCustomNameTag, setDead, setEating, setEntityBoundingBox, setEntityId, setFire, setFlag, setInvisible, setInWeb, setLocationAndAngles, setOnFireFromLava, setOutsideBorder, setPosition, setPositionAndRotation, setPositionAndUpdate, setRotation, setSilent, setSize, setSneaking, setVelocity, setWorld, shouldSetPosAfterLoading, spawnRunningParticles, toNBT, toString, travelToDimension, updateRiderPosition, verifyExplosion, writeMountToNBT, writeToNBT, writeToNBTOptional
-
Methods inherited from class net.zxmushroom63.plugins.BaseData
execFuncBaseData, execFuncObject, execFuncString, getBaseData, getBaseDataArr, getBoolean, getBooleanArr, getByte, getByteArr, getChar, getCharArr, getDouble, getDoubleArr, getFloat, getFloatArr, getInt, getIntArr, getObject, getObjectArr, getShort, getShortArr, getString, getStringArr, has, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, setCallbackBoolean, setCallbackBooleanArr, setCallbackBooleanArrWithDataArg, setCallbackBooleanWithDataArg, setCallbackDouble, setCallbackDoubleArr, setCallbackDoubleArrWithDataArg, setCallbackDoubleWithDataArg, setCallbackFloat, setCallbackFloatArr, setCallbackFloatArrWithDataArg, setCallbackFloatWithDataArg, setCallbackInt, setCallbackIntArr, setCallbackIntArrWithDataArg, setCallbackIntWithDataArg, setCallbackObject, setCallbackObjectArr, setCallbackObjectArrWithDataArg, setCallbackObjectWithDataArg, setCallbackString, setCallbackStringArr, setCallbackStringArrWithDataArg, setCallbackStringWithDataArg, setCallbackVoid, setCallbackVoidWithDataArg, setNull
-
-
-
-
Constructor Detail
-
EntitySlime
public EntitySlime(World worldIn)
-
-
Method Detail
-
entityInit
protected void entityInit()
- Overrides:
entityInit
in classEntityLiving
-
setSlimeSize
protected void setSlimeSize(int size)
-
getSlimeSize
public int getSlimeSize()
+ Returns the size of the slime.
-
writeEntityToNBT
public void writeEntityToNBT(NBTTagCompound nbttagcompound)
+ (abstract) Protected helper method to write subclass entity data to NBT.- Overrides:
writeEntityToNBT
in classEntityLiving
-
readEntityFromNBT
public void readEntityFromNBT(NBTTagCompound nbttagcompound)
+ (abstract) Protected helper method to read subclass entity data from NBT.- Overrides:
readEntityFromNBT
in classEntityLiving
-
getParticleType
protected EnumParticleTypes getParticleType()
-
getJumpSound
protected java.lang.String getJumpSound()
+ Returns the name of the sound played when the slime jumps.
-
onUpdate
public void onUpdate()
+ Called to update the entity's position/logic.- Overrides:
onUpdate
in classEntityLivingBase
-
alterSquishAmount
protected void alterSquishAmount()
-
getJumpDelay
protected int getJumpDelay()
+ Gets the amount of time the slime needs to wait between jumps.
-
createInstance
protected EntitySlime createInstance()
-
onDataWatcherUpdate
public void onDataWatcherUpdate(int i)
- Overrides:
onDataWatcherUpdate
in classEntity
-
applyEntityCollision
public void applyEntityCollision(Entity entity)
+ Applies a velocity to each of the entities pushing them away from each other. Args: entity- Overrides:
applyEntityCollision
in classEntity
-
onCollideWithPlayer
public void onCollideWithPlayer(EntityPlayer entityplayer)
+ Called by a player entity when they collide with an entity- Overrides:
onCollideWithPlayer
in classEntity
-
func_175451_e
protected void func_175451_e(EntityLivingBase parEntityLivingBase)
-
getEyeHeight
public float getEyeHeight()
- Overrides:
getEyeHeight
in classEntity
-
canDamagePlayer
protected boolean canDamagePlayer()
+ Indicates weather the slime is able to damage the player (based upon the slime's size)
-
getAttackStrength
protected int getAttackStrength()
+ Gets the amount of damage dealt to the player when "attacked" by the slime.
-
getHurtSound
protected java.lang.String getHurtSound()
+ Returns the sound this mob makes when it is hurt.- Overrides:
getHurtSound
in classEntityLivingBase
-
getDeathSound
protected java.lang.String getDeathSound()
+ Returns the sound this mob makes on death.- Overrides:
getDeathSound
in classEntityLivingBase
-
getDropItem
protected Item getDropItem()
- Overrides:
getDropItem
in classEntityLiving
-
getCanSpawnHere
public boolean getCanSpawnHere()
+ Checks if the entity's current position is a valid location to spawn this entity.- Overrides:
getCanSpawnHere
in classEntityLiving
-
getSoundVolume
protected float getSoundVolume()
+ Returns the volume for the sounds this mob makes.- Overrides:
getSoundVolume
in classEntityLivingBase
-
getVerticalFaceSpeed
public int getVerticalFaceSpeed()
+ The speed it takes to move the entityliving's rotationPitch through the faceEntity method. This is only currently use in wolves.- Overrides:
getVerticalFaceSpeed
in classEntityLiving
-
makesSoundOnJump
protected boolean makesSoundOnJump()
+ Returns true if the slime makes a sound when it jumps (based upon the slime's size)
-
makesSoundOnLand
protected boolean makesSoundOnLand()
+ Returns true if the slime makes a sound when it lands after a jump (based upon the slime's size)
-
jump
protected void jump()
+ Causes this entity to do an upwards motion (jumping).- Overrides:
jump
in classEntityLivingBase
-
onInitialSpawn
public IEntityLivingData onInitialSpawn(DifficultyInstance difficultyinstance, IEntityLivingData ientitylivingdata)
+ Called only once on an entity when first time spawned, via egg, mob spawner, natural spawning etc, but not called when entity is reloaded from nbt. Mainly used for initializing attributes and inventory- Overrides:
onInitialSpawn
in classEntityLiving
-
-