public class EntityShulker extends EntityGolem implements IMob
EntityLiving.SpawnPlacementType| Modifier and Type | Field and Description |
|---|---|
protected static DataParameter<<any>> |
ATTACHED_BLOCK_POS |
protected static DataParameter<EnumFacing> |
ATTACHED_FACE |
protected static DataParameter<java.lang.Byte> |
COLOR |
static EnumDyeColor |
DEFAULT_COLOR |
protected static DataParameter<java.lang.Byte> |
PEEK_TICK |
FLEEING_SPEED_MODIFIER, FLEEING_SPEED_MODIFIER_UUIDexperienceValue, inventoryArmorDropChances, inventoryHandsDropChances, jumpHelper, livingSoundTime, moveHelper, navigator, targetTasks, tasksactiveItemStack, activeItemStackUseCount, arrowHitTimer, attackedAtYaw, attackingPlayer, cameraPitch, dead, deathTime, entityAge, HAND_STATES, hurtTime, interpTargetPitch, interpTargetX, interpTargetY, interpTargetYaw, interpTargetZ, isJumping, isSwingInProgress, jumpMovementFactor, lastDamage, limbSwing, limbSwingAmount, maxHurtResistantTime, maxHurtTime, movedDistance, moveForward, moveStrafing, newPosRotationIncrements, onGroundSpeedFactor, prevCameraPitch, prevLimbSwingAmount, prevMovedDistance, prevOnGroundSpeedFactor, prevRenderYawOffset, prevRotationYawHead, prevSwingProgress, randomUnused1, randomUnused2, randomYawVelocity, recentlyHit, renderYawOffset, rotationYawHead, scoreValue, swingingHand, swingProgress, swingProgressInt, ticksElytraFlying, ticksSinceLastSwing, unused180addedToChunk, cachedUniqueIdString, capturedDrops, captureDrops, chunkCoordX, chunkCoordY, chunkCoordZ, dataManager, dimension, distanceWalkedModified, distanceWalkedOnStepModified, entityCollisionReduction, entityUniqueID, fallDistance, firstUpdate, FLAGS, forceSpawn, glowing, height, hurtResistantTime, ignoreFrustumCheck, inPortal, inWater, isAirBorne, isCollided, isCollidedHorizontally, isCollidedVertically, isDead, isImmuneToFire, isInWeb, lastPortalPos, lastPortalVec, lastTickPosX, lastTickPosY, lastTickPosZ, motionX, motionY, motionZ, noClip, onGround, portalCounter, posX, posY, posZ, prevDistanceWalkedModified, preventEntitySpawning, prevPosX, prevPosY, prevPosZ, prevRotationPitch, prevRotationYaw, rand, rideCooldown, rotationPitch, rotationYaw, serverPosX, serverPosY, serverPosZ, stepHeight, teleportDirection, ticksExisted, timeUntilPortal, updateBlocked, velocityChanged, width, worldMOB_SELECTOR, VISIBLE_MOB_SELECTOR| Constructor and Description |
|---|
EntityShulker(World worldIn) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
applyEntityAttributes() |
void |
applyEntityCollision(Entity entityIn)
Applies a velocity to the entities, to push them away from eachother.
|
boolean |
attackEntityFrom(DamageSource source,
float amount)
Called when the entity is attacked.
|
protected boolean |
canTriggerWalking()
returns if this entity triggers Block.onEntityWalking on the blocks they walk on.
|
protected EntityBodyHelper |
createBodyHelper() |
protected void |
entityInit() |
protected SoundEvent |
getAmbientSound() |
EnumFacing |
getAttachmentFacing() |
BlockPos |
getAttachmentPos() |
float |
getClientPeekAmount(float p_184688_1_) |
int |
getClientTeleportInterp() |
float |
getCollisionBorderSize() |
AxisAlignedBB |
getCollisionBoundingBox()
Returns the collision bounding box for this entity
|
EnumDyeColor |
getColor() |
protected SoundEvent |
getDeathSound() |
float |
getEyeHeight() |
int |
getHorizontalFaceSpeed() |
protected SoundEvent |
getHurtSound() |
protected ResourceLocation |
getLootTable() |
BlockPos |
getOldAttachPos() |
int |
getPeekTick() |
SoundCategory |
getSoundCategory() |
int |
getVerticalFaceSpeed()
The speed it takes to move the entityliving's rotationPitch through the faceEntity method.
|
protected void |
initEntityAI() |
boolean |
isAttachedToBlock() |
void |
move(MoverType type,
double x,
double y,
double z)
Tries to move the entity towards the specified location.
|
void |
notifyDataManagerChange(DataParameter<?> key) |
IEntityLivingData |
onInitialSpawn(DifficultyInstance difficulty,
IEntityLivingData livingdata)
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 |
onLivingUpdate()
Called frequently so the entity can update its state every tick as required.
|
void |
onUpdate()
Called to update the entity's position/logic.
|
void |
playLivingSound()
Plays living's sound at its position
|
void |
readEntityFromNBT(NBTTagCompound compound)
(abstract) Protected helper method to read subclass entity data from NBT.
|
static void |
registerFixesShulker(DataFixer fixer) |
void |
setAttachmentPos(BlockPos pos) |
void |
setPosition(double x,
double y,
double z)
Sets the x,y,z of the entity from the given parameters.
|
void |
setPositionAndRotationDirect(double x,
double y,
double z,
float yaw,
float pitch,
int posRotationIncrements,
boolean teleport)
Set the position and rotation values directly without any clamping.
|
protected boolean |
tryTeleportToNewPosition() |
void |
updateArmorModifier(int p_184691_1_)
Applies or removes armor modifier
|
void |
writeEntityToNBT(NBTTagCompound compound)
(abstract) Protected helper method to write subclass entity data to NBT.
|
canDespawn, fall, getTalkIntervaldetachHome, followLeashSpeed, getBlockPathWeight, getCanSpawnHere, getHomePosition, getMaximumHomeDistance, hasHome, hasPath, isWithinHomeDistanceCurrentPosition, isWithinHomeDistanceFromPosition, onLeashDistance, setHomePosAndDistance, updateLeashedStatecanAttackClass, canBeLeashedTo, canBeSteered, canEquipItem, canPassengerSteer, canPickUpLoot, clearLeashed, createNavigator, despawnEntity, dropEquipment, dropFewItems, dropLoot, eatGrassBonus, enablePersistence, faceEntity, getArmorByChance, getArmorInventoryList, getAttackTarget, getDropItem, getEntitySenses, getExperiencePoints, getHeldEquipment, getItemStackFromSlot, getJumpHelper, getLeashed, getLeashedToEntity, getLookHelper, getMaxFallHeight, getMaxSpawnedInChunk, getMoveHelper, getNavigator, getPathPriority, getPrimaryHand, getRenderSizeModifier, getSlotForItemStack, handleStatusUpdate, isAIDisabled, isItemStackInSlot, isLeftHanded, isNoDespawnRequired, isNotColliding, isServerWorld, onEntityUpdate, playHurtSound, processInitialInteract, processInteract, registerFixesMob, replaceItemInInventory, setAIMoveSpeed, setAttackTarget, setCanPickUpLoot, setDropChance, setEnchantmentBasedOnDifficulty, setEquipmentBasedOnDifficulty, setItemStackToSlot, setLeashedToEntity, setLeftHanded, setMoveForward, setMoveStrafing, setNoAI, setPathPriority, spawnExplosionParticle, startRiding, updateAITasks, updateDistance, updateEntityActionState, updateEquipmentIfNeededaddPotionEffect, applyArmorCalculations, applyPotionDamageCalculations, areAllPotionsAmbient, attackable, attackEntityAsMob, attemptTeleport, blockUsingShield, canBeCollidedWith, canBeHitWithPotion, canBePushed, canBreatheUnderwater, canDropLoot, canEntityBeSeen, clearActivePotions, collideWithEntity, collideWithNearbyEntities, curePotionEffects, damageArmor, damageEntity, damageShield, decreaseAirSupply, dismountEntity, dismountRidingEntity, frostWalk, getAbsorptionAmount, getActiveHand, getActiveItemStack, getActivePotionEffect, getActivePotionEffects, getAge, getAIMoveSpeed, getAITarget, getAlwaysRenderNameTagForRender, getArrowCountInEntity, getAttackingEntity, getAttributeMap, getCapability, getCombatTracker, getCreatureAttribute, getEntityAttribute, getFallSound, getHealth, getHeldItem, getHeldItemMainhand, getHeldItemOffhand, getItemInUseCount, getItemInUseMaxCount, getJumpUpwardsMotion, getLastAttacker, getLastAttackerTime, getLastDamageSource, getLook, getLookVec, getMaxHealth, getRevengeTimer, getRNG, getRotationYawHead, getSoundPitch, getSoundVolume, getSwingProgress, getTicksElytraFlying, getTotalArmorValue, getWaterSlowDown, handleJumpLava, handleJumpWater, hasCapability, hasItemInSlot, heal, isActiveItemStackBlocking, isChild, isElytraFlying, isEntityAlive, isEntityUndead, isHandActive, isMovementBlocked, isOnLadder, isPlayer, isPlayerSleeping, isPotionActive, isPotionApplicable, jump, kill, knockBack, markPotionsDirty, moveEntityWithHeading, onChangedPotionEffect, onDeath, onDeathUpdate, onFinishedPotionEffect, onItemPickup, onItemUseFinish, onKillCommand, onNewPotionEffect, performHurtAnimation, playEquipSound, removeActivePotionEffect, removePotionEffect, renderBrokenItemStack, resetActiveHand, resetPotionEffectMetadata, sendEndCombat, sendEnterCombat, setAbsorptionAmount, setActiveHand, setArrowCountInEntity, setBeenAttacked, setHealth, setHeldItem, setJumping, setLastAttacker, setRenderYawOffset, setRevengeTarget, setRotationYawHead, setSprinting, shouldRiderFaceForward, stopActiveHand, swingArm, updateActiveHand, updateArmSwingProgress, updateFallState, updateItemUse, updatePotionEffects, updatePotionMetadata, updateRiddenaddEntityCrashInfo, addPassenger, addTag, addToPlayerScore, addTrackingPlayer, addVelocity, applyEnchantments, applyOrientationToEntity, applyPlayerInteraction, canBeAttackedWithItem, canBeRidden, canFitPassenger, canRenderOnFire, canRiderInteract, canTrample, canUseCommand, changeDimension, copyLocationAndAnglesFrom, createRunningParticles, dealFireDamage, decrementTimeUntilPortal, deserializeNBT, doBlockCollisions, doesEntityNotTriggerPressurePlate, dropItem, dropItemWithOffset, entityDropItem, equals, extinguish, getAdjustedHorizontalFacing, getAir, getAlwaysRenderNameTag, getBrightness, getBrightnessForRender, getCachedUniqueIdString, getCollisionBox, getCommandSenderEntity, getCommandStats, getControllingPassenger, getCustomNameTag, getDataManager, getDisplayName, getDistance, getDistanceSq, getDistanceSq, getDistanceSqToCenter, getDistanceSqToEntity, getDistanceToEntity, getEntityBoundingBox, getEntityData, getEntityId, getEntityString, getEntityWorld, getEquipmentAndArmor, getExplosionResistance, getFireImmuneTicks, getFlag, getForward, getHorizontalFacing, getHoverEvent, getIsInvulnerable, getLastPortalVec, getLowestRidingEntity, getMaxInPortalTime, getMirroredYaw, getMountedYOffset, getName, getParts, getPassengers, getPersistentID, getPickedResult, getPitchYaw, getPortalCooldown, getPosition, getPositionEyes, getPositionVector, getPushReaction, getRecursivePassengers, getRecursivePassengersByType, getRenderBoundingBox, getRenderDistanceWeight, getRidingEntity, getRotatedYaw, getServer, getSplashSound, getSwimSound, getTags, getTeam, getTeleportDirection, getUniqueID, getVectorForRotation, getYOffset, handleWaterMovement, hasCustomName, hashCode, hasNoGravity, hitByEntity, ignoreItemEntityData, isBeingRidden, isBurning, isCreatureType, isEntityEqual, isEntityInsideOpaqueBlock, isEntityInvulnerable, isGlowing, isImmuneToExplosions, isImmuneToFire, isInLava, isInRangeToRender3d, isInRangeToRenderDist, isInsideOfMaterial, isInvisible, isInvisibleToPlayer, isInWater, isNonBoss, isOffsetPositionInLiquid, isOnSameTeam, isOnScoreboardTeam, isOutsideBorder, isPassenger, isPushedByWater, isRiding, isRidingOrBeingRiddenBy, isRidingSameEntity, isSilent, isSneaking, isSpectatedByPlayer, isSprinting, isWet, moveRelative, moveToBlockPosAndAngles, newDoubleNBTList, newFloatNBTList, onCollideWithPlayer, onKillEntity, onStruckByLightning, playSound, playStepSound, preparePlayerToSpawn, pushOutOfBlocks, rayTrace, readFromNBT, registerFixes, removePassenger, removePassengers, removeTag, removeTrackingPlayer, resetEntityId, resetHeight, resetPositionToBB, sendCommandFeedback, sendMessage, serializeNBT, setAir, setAlwaysRenderNameTag, setCommandStat, setCommandStats, setCustomNameTag, setDead, setDropItemsWhenDead, setEntityBoundingBox, setEntityId, setEntityInvulnerable, setFire, setFlag, setGlowing, setInvisible, setInWeb, setLocationAndAngles, setNoGravity, setOnFireFromLava, setOutsideBorder, setPortal, setPositionAndRotation, setPositionAndUpdate, setPositionNonDirty, setRenderDistanceWeight, setRotation, setSilent, setSize, setSneaking, setUniqueId, setVelocity, setWorld, shouldDismountInWater, shouldRenderInPass, shouldRiderSit, shouldSetPosAfterLoading, spawnRunningParticles, startRiding, toString, turn, updatePassenger, verifyExplosion, writeToNBT, writeToNBTAtomically, writeToNBTOptionalprotected static final DataParameter<EnumFacing> ATTACHED_FACE
protected static final DataParameter<<any>> ATTACHED_BLOCK_POS
protected static final DataParameter<java.lang.Byte> PEEK_TICK
protected static final DataParameter<java.lang.Byte> COLOR
public static final EnumDyeColor DEFAULT_COLOR
public EntityShulker(World worldIn)
public IEntityLivingData onInitialSpawn(DifficultyInstance difficulty, IEntityLivingData livingdata)
onInitialSpawn in class EntityLivingprotected void initEntityAI()
initEntityAI in class EntityLivingprotected boolean canTriggerWalking()
canTriggerWalking in class Entitypublic SoundCategory getSoundCategory()
getSoundCategory in class Entityprotected SoundEvent getAmbientSound()
getAmbientSound in class EntityGolempublic void playLivingSound()
playLivingSound in class EntityLivingprotected SoundEvent getDeathSound()
getDeathSound in class EntityGolemprotected SoundEvent getHurtSound()
getHurtSound in class EntityGolemprotected void entityInit()
entityInit in class EntityLivingprotected void applyEntityAttributes()
applyEntityAttributes in class EntityLivingprotected EntityBodyHelper createBodyHelper()
createBodyHelper in class EntityLivingpublic static void registerFixesShulker(DataFixer fixer)
public void readEntityFromNBT(NBTTagCompound compound)
readEntityFromNBT in class EntityLivingpublic void writeEntityToNBT(NBTTagCompound compound)
writeEntityToNBT in class EntityLivingpublic void onUpdate()
onUpdate in class EntityLivingpublic void move(MoverType type, double x, double y, double z)
public void setPosition(double x,
double y,
double z)
setPosition in class Entityprotected boolean tryTeleportToNewPosition()
public void onLivingUpdate()
onLivingUpdate in class EntityLivingpublic void notifyDataManagerChange(DataParameter<?> key)
notifyDataManagerChange in class EntityLivingBasepublic void setPositionAndRotationDirect(double x,
double y,
double z,
float yaw,
float pitch,
int posRotationIncrements,
boolean teleport)
setPositionAndRotationDirect in class EntityLivingBasepublic boolean attackEntityFrom(DamageSource source, float amount)
attackEntityFrom in class EntityLivingBasepublic AxisAlignedBB getCollisionBoundingBox()
getCollisionBoundingBox in class Entitypublic EnumFacing getAttachmentFacing()
public BlockPos getAttachmentPos()
public void setAttachmentPos(BlockPos pos)
public int getPeekTick()
public void updateArmorModifier(int p_184691_1_)
public float getClientPeekAmount(float p_184688_1_)
public int getClientTeleportInterp()
public BlockPos getOldAttachPos()
public float getEyeHeight()
getEyeHeight in class Entitypublic int getVerticalFaceSpeed()
getVerticalFaceSpeed in class EntityLivingpublic int getHorizontalFaceSpeed()
getHorizontalFaceSpeed in class EntityLivingpublic void applyEntityCollision(Entity entityIn)
applyEntityCollision in class Entitypublic float getCollisionBorderSize()
getCollisionBorderSize in class Entitypublic boolean isAttachedToBlock()
protected ResourceLocation getLootTable()
getLootTable in class EntityLivingpublic EnumDyeColor getColor()