Package net.minecraft.entity.monster
Class ShulkerEntity
- java.lang.Object
-
- All Implemented Interfaces:
ICommandSource
,IMob
,INameable
,ICapabilityProvider
,ICapabilitySerializable<CompoundNBT>
,IForgeEntity
,INBTSerializable<CompoundNBT>
public class ShulkerEntity extends GolemEntity implements IMob
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) class
ShulkerEntity.AttackGoal
(package private) class
ShulkerEntity.AttackNearestGoal
(package private) class
ShulkerEntity.BodyHelperController
(package private) static class
ShulkerEntity.DefenseAttackGoal
(package private) class
ShulkerEntity.PeekGoal
-
Nested classes/interfaces inherited from class net.minecraft.entity.Entity
Entity.IMoveCallback
-
-
Field Summary
Fields Modifier and Type Field Description private int
clientSideTeleportInterpolation
private static AttributeModifier
COVERED_ARMOR_MODIFIER
private static java.util.UUID
COVERED_ARMOR_MODIFIER_UUID
private float
currentPeekAmount
private float
currentPeekAmountO
protected static DataParameter<Direction>
DATA_ATTACH_FACE_ID
protected static DataParameter<java.util.Optional<BlockPos>>
DATA_ATTACH_POS_ID
protected static DataParameter<java.lang.Byte>
DATA_COLOR_ID
protected static DataParameter<java.lang.Byte>
DATA_PEEK_ID
private BlockPos
oldAttachPosition
-
Fields inherited from class net.minecraft.entity.MobEntity
ambientSoundTime, armorDropChances, goalSelector, handDropChances, jumpControl, lookControl, moveControl, navigation, targetSelector, xpReward
-
Fields inherited from class net.minecraft.entity.LivingEntity
animationPosition, animationSpeed, animationSpeedOld, animStep, animStepO, attackAnim, attackStrengthTicker, autoSpinAttackTicks, brain, DATA_LIVING_ENTITY_FLAGS, dead, deathScore, deathTime, fallFlyTicks, flyingSpeed, hurtDir, hurtDuration, hurtTime, invulnerableDuration, jumping, lastHurt, lastHurtByPlayer, lastHurtByPlayerTime, lerpHeadSteps, lerpSteps, lerpX, lerpXRot, lerpY, lerpYRot, lerpZ, lyHeadRot, noActionTime, oAttackAnim, oRun, removeArrowTime, removeStingerTime, rotA, rotOffs, run, SLEEPING_DIMENSIONS, swinging, swingingArm, swingTime, timeOffs, useItem, useItemRemaining, xxa, yBodyRot, yBodyRotO, yHeadRot, yHeadRotO, yya, zza
-
Fields inherited from class net.minecraft.entity.Entity
blocksBuilding, boardingCooldown, DATA_POSE, DATA_SHARED_FLAGS_ID, ENTITY_COUNTER, entityData, fallDistance, firstTick, fluidHeight, fluidOnEyes, forcedLoading, glowing, hasImpulse, horizontalCollision, hurtMarked, inChunk, invulnerableTime, isInsidePortal, level, LOGGER, maxUpStep, moveDist, noCulling, noPhysics, onGround, portalEntrancePos, portalTime, pushthrough, random, removed, stringUUID, stuckSpeedMultiplier, tickCount, uuid, verticalCollision, walkDist, walkDistO, wasEyeInWater, wasTouchingWater, xChunk, xo, xOld, xRot, xRotO, yChunk, yo, yOld, yRot, yRotO, zChunk, zo, zOld
-
Fields inherited from interface net.minecraft.command.ICommandSource
NULL
-
-
Constructor Summary
Constructors Constructor Description ShulkerEntity(EntityType<? extends ShulkerEntity> p_i50196_1_, World p_i50196_2_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addAdditionalSaveData(CompoundNBT p_213281_1_)
void
aiStep()
private boolean
canAttachOnBlockFace(BlockPos p_234298_1_, Direction p_234298_2_)
boolean
canBeCollidedWith()
static AttributeModifierMap.MutableAttribute
createAttributes()
protected BodyController
createBodyControl()
protected void
defineSynchedData()
protected Direction
findAttachableFace(BlockPos p_234299_1_)
protected SoundEvent
getAmbientSound()
Direction
getAttachFace()
BlockPos
getAttachPosition()
float
getClientPeekAmount(float p_184688_1_)
int
getClientSideTeleportInterpolation()
DyeColor
getColor()
protected SoundEvent
getDeathSound()
protected SoundEvent
getHurtSound(DamageSource p_184601_1_)
int
getMaxHeadXRot()
int
getMaxHeadYRot()
BlockPos
getOldAttachPosition()
float
getPickRadius()
int
getRawPeekAmount()
SoundCategory
getSoundSource()
protected float
getStandingEyeHeight(Pose p_213348_1_, EntitySize p_213348_2_)
boolean
hasValidInterpolationPositions()
boolean
hurt(DamageSource p_70097_1_, float p_70097_2_)
private boolean
isClosed()
protected boolean
isMovementNoisy()
void
lerpTo(double p_180426_1_, double p_180426_3_, double p_180426_5_, float p_180426_7_, float p_180426_8_, int p_180426_9_, boolean p_180426_10_)
void
move(MoverType p_213315_1_, Vector3d p_213315_2_)
void
onSyncedDataUpdated(DataParameter<?> p_184206_1_)
void
playAmbientSound()
void
push(Entity p_70108_1_)
void
readAdditionalSaveData(CompoundNBT p_70037_1_)
protected void
registerGoals()
void
setAttachPosition(BlockPos p_184694_1_)
void
setPos(double p_70107_1_, double p_70107_3_, double p_70107_5_)
void
setRawPeekAmount(int p_184691_1_)
protected boolean
teleportSomewhere()
void
tick()
-
Methods inherited from class net.minecraft.entity.passive.GolemEntity
causeFallDamage, getAmbientSoundInterval, removeWhenFarAway
-
Methods inherited from class net.minecraft.entity.CreatureEntity
checkSpawnRules, followLeashSpeed, getWalkTargetValue, getWalkTargetValue, isPathFinding, onLeashDistance, tickLeash
-
Methods inherited from class net.minecraft.entity.MobEntity
ate, baseTick, canAttack, canAttackType, canBeControlledByRider, canBeLeashed, canCutCorner, canFireProjectileWeapon, canHoldItem, canPickUpLoot, canReplaceCurrentItem, canReplaceEqualItem, canTakeItem, checkDespawn, checkMobSpawnRules, checkSpawnObstruction, convertTo, createLootContext, createMobAttributes, createNavigation, customServerAiStep, doHurtTarget, dropCustomDeathLoot, dropFromLootTable, dropLeash, enchantSpawnedArmor, enchantSpawnedWeapon, equipItemIfPossible, finalizeSpawn, getArmorSlots, getDefaultLootTable, getEquipmentDropChance, getEquipmentForSlot, getEquipmentSlotForItem, getExperienceReward, getHandSlots, getHeadRotSpeed, getItemBySlot, getJumpControl, getLeashHolder, getLookControl, getLootTable, getMainArm, getMaxFallDistance, getMaxSpawnClusterSize, getMoveControl, getNavigation, getPathfindingMalus, getRestrictCenter, getRestrictRadius, getSensing, getTarget, handleEntityEvent, hasRestriction, interact, isAggressive, isControlledByLocalInstance, isEffectiveAi, isLeashed, isLeftHanded, isMaxGroupSizeReached, isNoAi, isPersistenceRequired, isSunBurnTick, isValidSlotForItem, isWithinRestriction, isWithinRestriction, jumpInLiquid, lookAt, mobInteract, onOffspringSpawnedFromEgg, pickUpItem, playHurtSound, populateDefaultEquipmentEnchantments, populateDefaultEquipmentSlots, removeAfterChangingDimensions, requiresCustomPersistence, restrictTo, sendDebugPackets, serverAiStep, setAggressive, setBaby, setCanPickUpLoot, setDelayedLeashHolderId, setDropChance, setGuaranteedDrop, setItemSlot, setItemSlotAndDropWhenKilled, setLeashedTo, setLeftHanded, setNoAi, setPathfindingMalus, setPersistenceRequired, setSlot, setSpeed, setTarget, setXxa, setYya, setZza, shouldDespawnInPeaceful, shouldPassengersInheritMalus, spawnAnim, startRiding, tickHeadTurn, updateControlFlags, wantsToPickUp
-
Methods inherited from class net.minecraft.entity.LivingEntity
actuallyHurt, addEffect, animateHurt, areAllEffectsAmbient, attackable, blockedByShield, blockUsingShield, brainProvider, broadcastBreakEvent, broadcastBreakEvent, calculateEntityAnimation, calculateFallDamage, canAttack, canBeAffected, canBreatheUnderwater, canSee, canSpawnSoulSpeedParticle, canStandOnFluid, checkAutoSpinAttack, checkFallDamage, clearSleepingPos, completeUsingItem, createLivingAttributes, createWitherRose, curePotionEffects, decreaseAirSupply, die, doAutoAttackOnTouch, doPush, dropAllDeathLoot, dropEquipment, dropExperience, eat, forceAddEffect, getAbsorptionAmount, getActiveEffects, getActiveEffectsMap, getAddEntityPacket, getArmorCoverPercentage, getArmorValue, getArrowCount, getAttackAnim, getAttribute, getAttributeBaseValue, getAttributes, getAttributeValue, getBedOrientation, getBlockSpeedFactor, getBoundingBoxForCulling, getBrain, getCapability, getCombatTracker, getDamageAfterArmorAbsorb, getDamageAfterMagicAbsorb, getDimensions, getDismountPoses, getDrinkingSound, getEatingSound, getEffect, getEyeHeight, getFallDamageSound, getFallFlyingTicks, getFeetBlockState, getFluidFallingAdjustedMovement, getHealth, getItemInHand, getJumpPower, getKillCredit, getLastClimbablePos, getLastDamageSource, getLastHurtByMob, getLastHurtByMobTimestamp, getLastHurtMob, getLastHurtMobTimestamp, getLocalBoundsForPose, getMainHandItem, getMaxHealth, getMobType, getNoActionTime, getOffhandItem, getProjectile, getRandom, getRelativePortalPosition, getScale, getSleepingPos, getSoundVolume, getSpeed, getStingerCount, getSwimAmount, getTicksUsingItem, getUsedItemHand, getUseItem, getUseItemRemainingTicks, getViewYRot, getVisibilityPercent, getVoicePitch, getWaterSlowDown, getYHeadRot, goDownInWater, handleRelativeFrictionAndCalculateMovement, hasEffect, hasItemInSlot, heal, hurtArmor, hurtCurrentlyUsedShield, increaseAirSupply, invalidateCaps, isAffectedByFluids, isAffectedByPotions, isAlive, isAlwaysExperienceDropper, isAutoSpinAttack, isBaby, isBlocking, isDeadOrDying, isFallFlying, isHolding, isHolding, isImmobile, isInvertedHealAndHarm, isInWall, isPickable, isPushable, isSensitiveToWater, isSleeping, isSuppressingSlidingDownLadder, isUsingItem, isVisuallySwimming, jumpFromGround, kill, knockback, lerpHeadTo, lookAt, makeBrain, markHurt, onChangedBlock, onClimbable, onEffectAdded, onEffectRemoved, onEffectUpdated, onEnterCombat, onItemPickup, onLeaveCombat, onSoulSpeedBlock, outOfWorld, playBlockFallSound, playEquipSound, pushEntities, randomTeleport, releaseUsingItem, removeAllEffects, removeEffect, removeEffectNoUpdate, removeEffectParticles, removeSoulSpeed, resetForwardDirectionOfRelativePortalPosition, rideableUnderWater, rideTick, setAbsorptionAmount, setArrowCount, setHealth, setItemInHand, setJumping, setLastHurtByMob, setLastHurtByPlayer, setLastHurtMob, setLivingEntityFlag, setNoActionTime, setOnGround, setRecordPlayingNearby, setSleepingPos, setSprinting, setStingerCount, setYBodyRot, setYHeadRot, shouldDropExperience, shouldDropLoot, shouldRemoveSoulSpeed, shouldRiderFaceForward, shouldShowName, spawnSoulSpeedParticle, startAutoSpinAttack, startSleeping, startUsingItem, stopRiding, stopSleeping, stopUsingItem, swing, swing, take, tickDeath, tickEffects, travel, triggerItemUseEffects, tryAddSoulSpeed, updateEffectVisibility, updateInvisibilityStatus, updateSwingTime
-
Methods inherited from class net.minecraft.entity.Entity
absMoveTo, absMoveTo, acceptsFailure, acceptsSuccess, addPassenger, addTag, awardKillScore, blockPosition, broadcastToPlayer, calculateUpVector, calculateViewVector, canAddPassenger, canChangeDimensions, canCollideWith, canEnterPose, canRide, canSpawnSprintParticle, canTrample, canUpdate, canUpdate, captureDrops, captureDrops, changeDimension, changeDimension, checkAndResetForcedChunkAdditionFlag, checkAndResetUpdateChunkPos, checkInsideBlocks, clearFire, closerThan, collideBoundingBox, collideBoundingBoxHeuristically, collideBoundingBoxLegacy, copyPosition, createCommandSourceStack, createHoverEvent, displayFireAnimation, distanceTo, distanceToSqr, distanceToSqr, distanceToSqr, doEnchantDamageEffects, doWaterSplashEffect, ejectPassengers, equals, fillCrashReportCategory, findDimensionEntryPoint, fireImmune, getAirSupply, getAllSlots, getBbHeight, getBbWidth, getBlockExplosionResistance, getBlockJumpFactor, getBlockPosBelowThatAffectsMyMovement, getBlockStateOn, getBoundingBox, getBoundingBoxForPose, getBrightness, getCollisionHorizontalEscapeVector, getCommandSenderWorld, getControllingPassenger, getCustomName, getDeltaMovement, getDimensionChangingDelay, getDirection, getDismountLocationForPassenger, getDisplayName, getEncodeId, getEntityData, getExitPortal, getEyeHeight, getEyeHeight, getEyeHeightAccess, getEyePosition, getEyeY, getFireImmuneTicks, getFluidHeight, getFluidJumpThreshold, getForward, getHorizontalDistanceSqr, getId, getIndirectPassengers, getLeashOffset, getLightProbePosition, getLookAngle, getMaxAirSupply, getMotionDirection, getMyRidingOffset, getName, getOnPos, getPacketCoordinates, getPassengers, getPassengersRidingOffset, getPermissionLevel, getPersistentData, getPistonPushReaction, getPortalWaitTime, getPose, getPosition, getRandomX, getRandomY, getRandomZ, getRemainingFireTicks, getRootVehicle, getRopeHoldPosition, getRotationVector, getScoreboardName, getSelfAndPassengers, getServer, getSharedFlag, getStringUUID, getSwimHighSpeedSplashSound, getSwimSound, getSwimSplashSound, getTags, getTeam, getTeamColor, getType, getTypeName, getUpVector, getUUID, getVehicle, getViewScale, getViewVector, getViewXRot, getX, getX, getY, getY, getZ, getZ, handleInsidePortal, handleNetherPortal, hasCustomName, hashCode, hasIndirectPassenger, hasOnePlayerPassenger, hasPassenger, hasPassenger, hasPermissions, ignoreExplosion, interactAt, is, isAddedToWorld, isAlliedTo, isAlliedTo, isAttackable, isColliding, isCrouching, isCustomNameVisible, isDescending, isDiscrete, isEyeInFluid, isFree, isGlowing, isIgnoringBlockTriggers, isInLava, isInvisible, isInvisibleTo, isInvulnerable, isInvulnerableTo, isInWater, isInWaterOrBubble, isInWaterOrRain, isInWaterRainOrBubble, isNoGravity, isOnFire, isOnGround, isOnPortalCooldown, isPassenger, isPassengerOfSameVehicle, isPushedByFluid, isShiftKeyDown, isSilent, isSpectator, isSprinting, isSteppingCarefully, isSuppressingBounce, isSwimming, isUnderWater, isVehicle, isVisuallyCrawling, killed, lavaHurt, lerpMotion, limitPistonMovement, load, makeFlySound, makeStuckInBlock, maybeBackOffFromEdge, mirror, moveRelative, moveTo, moveTo, moveTo, moveTo, moveTowardsClosestSpace, newDoubleList, newFloatList, nextStep, onAboveBubbleCol, onAddedToWorld, onInsideBlock, onInsideBubbleColumn, onlyOpCanSetNbt, onPassengerTurned, onRemovedFromWorld, pick, playerTouch, playFlySound, playSound, playStepSound, playSwimSound, position, positionRider, processPortalCooldown, push, reapplyPosition, refreshDimensions, remove, remove, removePassenger, removeTag, removeVehicle, repositionEntityAfterLoad, resetPos, restoreFrom, revive, rotate, save, saveAsPassenger, saveWithoutId, sendMessage, setAirSupply, setBoundingBox, setCustomName, setCustomNameVisible, setDeltaMovement, setDeltaMovement, setGlowing, setId, setInvisible, setInvulnerable, setLevel, setLocationFromBoundingbox, setNoGravity, setPacketCoordinates, setPacketCoordinates, setPortalCooldown, setPosAndOldPos, setPose, setPosRaw, setRemainingFireTicks, setRot, setSecondsOnFire, setSharedFlag, setShiftKeyDown, setSilent, setSwimming, setUUID, setViewScale, shouldBlockExplode, shouldInformAdmins, shouldRender, shouldRenderAtSqrDistance, showVehicleHealth, skipAttackInteraction, spawnAtLocation, spawnAtLocation, spawnAtLocation, spawnAtLocation, spawnSprintParticle, startRiding, startSeenByPlayer, stopSeenByPlayer, teleportTo, teleportToWithTicket, thunderHit, toString, turn, unRide, updateFluidHeightAndDoFluidPushing, updateInWaterStateAndDoFluidPushing, updateSwimming
-
Methods inherited from class net.minecraftforge.common.capabilities.CapabilityProvider
areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, reviveCaps, serializeCaps
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface net.minecraftforge.common.capabilities.ICapabilityProvider
getCapability
-
Methods inherited from interface net.minecraftforge.common.extensions.IForgeEntity
canBeRiddenInWater, canRiderInteract, deserializeNBT, getClassification, getDimensionsForge, getEntity, getEyeHeightForge, getParts, getPickedResult, isMultipartEntity, serializeNBT, shouldRiderSit
-
-
-
-
Field Detail
-
COVERED_ARMOR_MODIFIER_UUID
private static final java.util.UUID COVERED_ARMOR_MODIFIER_UUID
-
COVERED_ARMOR_MODIFIER
private static final AttributeModifier COVERED_ARMOR_MODIFIER
-
DATA_ATTACH_FACE_ID
protected static final DataParameter<Direction> DATA_ATTACH_FACE_ID
-
DATA_ATTACH_POS_ID
protected static final DataParameter<java.util.Optional<BlockPos>> DATA_ATTACH_POS_ID
-
DATA_PEEK_ID
protected static final DataParameter<java.lang.Byte> DATA_PEEK_ID
-
DATA_COLOR_ID
protected static final DataParameter<java.lang.Byte> DATA_COLOR_ID
-
currentPeekAmountO
private float currentPeekAmountO
-
currentPeekAmount
private float currentPeekAmount
-
oldAttachPosition
private BlockPos oldAttachPosition
-
clientSideTeleportInterpolation
private int clientSideTeleportInterpolation
-
-
Constructor Detail
-
ShulkerEntity
public ShulkerEntity(EntityType<? extends ShulkerEntity> p_i50196_1_, World p_i50196_2_)
-
-
Method Detail
-
registerGoals
protected void registerGoals()
- Overrides:
registerGoals
in classMobEntity
-
isMovementNoisy
protected boolean isMovementNoisy()
- Overrides:
isMovementNoisy
in classEntity
-
getSoundSource
public SoundCategory getSoundSource()
- Overrides:
getSoundSource
in classEntity
-
getAmbientSound
protected SoundEvent getAmbientSound()
- Overrides:
getAmbientSound
in classGolemEntity
-
playAmbientSound
public void playAmbientSound()
- Overrides:
playAmbientSound
in classMobEntity
-
getDeathSound
protected SoundEvent getDeathSound()
- Overrides:
getDeathSound
in classGolemEntity
-
getHurtSound
protected SoundEvent getHurtSound(DamageSource p_184601_1_)
- Overrides:
getHurtSound
in classGolemEntity
-
defineSynchedData
protected void defineSynchedData()
- Overrides:
defineSynchedData
in classMobEntity
-
createAttributes
public static AttributeModifierMap.MutableAttribute createAttributes()
-
createBodyControl
protected BodyController createBodyControl()
- Overrides:
createBodyControl
in classMobEntity
-
readAdditionalSaveData
public void readAdditionalSaveData(CompoundNBT p_70037_1_)
- Overrides:
readAdditionalSaveData
in classMobEntity
-
addAdditionalSaveData
public void addAdditionalSaveData(CompoundNBT p_213281_1_)
- Overrides:
addAdditionalSaveData
in classMobEntity
-
setPos
public void setPos(double p_70107_1_, double p_70107_3_, double p_70107_5_)
-
canAttachOnBlockFace
private boolean canAttachOnBlockFace(BlockPos p_234298_1_, Direction p_234298_2_)
-
teleportSomewhere
protected boolean teleportSomewhere()
-
onSyncedDataUpdated
public void onSyncedDataUpdated(DataParameter<?> p_184206_1_)
- Overrides:
onSyncedDataUpdated
in classLivingEntity
-
lerpTo
public void lerpTo(double p_180426_1_, double p_180426_3_, double p_180426_5_, float p_180426_7_, float p_180426_8_, int p_180426_9_, boolean p_180426_10_)
- Overrides:
lerpTo
in classLivingEntity
-
hurt
public boolean hurt(DamageSource p_70097_1_, float p_70097_2_)
- Overrides:
hurt
in classLivingEntity
-
isClosed
private boolean isClosed()
-
canBeCollidedWith
public boolean canBeCollidedWith()
- Overrides:
canBeCollidedWith
in classEntity
-
getAttachFace
public Direction getAttachFace()
-
getAttachPosition
@Nullable public BlockPos getAttachPosition()
-
setAttachPosition
public void setAttachPosition(@Nullable BlockPos p_184694_1_)
-
getRawPeekAmount
public int getRawPeekAmount()
-
setRawPeekAmount
public void setRawPeekAmount(int p_184691_1_)
-
getClientPeekAmount
public float getClientPeekAmount(float p_184688_1_)
-
getClientSideTeleportInterpolation
public int getClientSideTeleportInterpolation()
-
getOldAttachPosition
public BlockPos getOldAttachPosition()
-
getStandingEyeHeight
protected float getStandingEyeHeight(Pose p_213348_1_, EntitySize p_213348_2_)
- Overrides:
getStandingEyeHeight
in classLivingEntity
-
getMaxHeadXRot
public int getMaxHeadXRot()
- Overrides:
getMaxHeadXRot
in classMobEntity
-
getMaxHeadYRot
public int getMaxHeadYRot()
- Overrides:
getMaxHeadYRot
in classMobEntity
-
push
public void push(Entity p_70108_1_)
- Overrides:
push
in classLivingEntity
-
getPickRadius
public float getPickRadius()
- Overrides:
getPickRadius
in classEntity
-
hasValidInterpolationPositions
public boolean hasValidInterpolationPositions()
-
getColor
@Nullable public DyeColor getColor()
-
-