net.minecraft.entity.mob

public class ShulkerEntity

extends GolemEntity 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.Shulker
net.minecraft.world.entity.monster.Shulker
net.minecraft.class_1606
net.minecraft.entity.mob.ShulkerEntity

Field summary

Modifier and TypeField
private static final Identifier
COVERED_ARMOR_MODIFIER_ID
COVERED_ARMOR_MODIFIER_ID
field_7341
COVERED_ARMOR_MODIFIER_ID
private static final EntityAttributeModifier
COVERED_ARMOR_MODIFIER
COVERED_ARMOR_MODIFIER
field_7342
COVERED_ARMOR_BONUS
protected static final TrackedData<Direction>
DATA_ATTACH_FACE_ID
DATA_ATTACH_FACE_ID
field_7344
ATTACHED_FACE
protected static final TrackedData<Byte>
DATA_PEEK_ID
DATA_PEEK_ID
field_7346
PEEK_AMOUNT
protected static final TrackedData<Byte>
DATA_COLOR_ID
DATA_COLOR_ID
field_7343
COLOR
private static final int
TELEPORT_STEPS
TELEPORT_STEPS
field_30487
field_30487
private static final byte
NO_COLOR
NO_COLOR
field_30488
field_30488
private static final byte
DEFAULT_COLOR
DEFAULT_COLOR
field_30489
field_30489
private static final int
MAX_TELEPORT_DISTANCE
MAX_TELEPORT_DISTANCE
field_30490
field_30490
private static final int
OTHER_SHULKER_SCAN_RADIUS
OTHER_SHULKER_SCAN_RADIUS
field_30491
field_30491
private static final int
OTHER_SHULKER_LIMIT
OTHER_SHULKER_LIMIT
field_30492
field_30492
private static final float
PEEK_PER_TICK
PEEK_PER_TICK
field_30493
field_30493
private static final byte
DEFAULT_PEEK
DEFAULT_PEEK
field_57689
DEFAULT_PEEK
private static final Direction
DEFAULT_ATTACH_FACE
DEFAULT_ATTACH_FACE
field_57690
DEFAULT_ATTACHED_FACE
private static final org.joml.Vector3fc
FORWARD
FORWARD
field_33765
SOUTH_VECTOR
private static final float
MAX_SCALE
MAX_SCALE
field_48343
field_48343
private float
currentPeekAmountO
currentPeekAmountO
field_7339
lastOpenProgress
private float
currentPeekAmount
currentPeekAmount
field_7337
openProgress
private BlockPos
clientOldAttachPosition
clientOldAttachPosition
field_7345
lastAttachedBlock
private int
clientSideTeleportInterpolation
clientSideTeleportInterpolation
field_7340
teleportLerpTimer
private static final float
MAX_LID_OPEN
MAX_LID_OPEN
field_30494
field_30494

Constructor summary

ModifierConstructor
public (EntityType<? extends ShulkerEntity> type, World level)

Method summary

Modifier and TypeMethod
protected void
registerGoals()
registerGoals()
method_5959()
initGoals()
protected Entity$MoveEffect
getMovementEmission()
getMovementEmission()
method_33570()
getMoveEffect()
public SoundCategory
getSoundSource()
getSoundSource()
method_5634()
getSoundCategory()
protected SoundEvent
getAmbientSound()
getAmbientSound()
method_5994()
getAmbientSound()
public void
playAmbientSound()
playAmbientSound()
method_5966()
playAmbientSound()
protected SoundEvent
getDeathSound()
getDeathSound()
method_6002()
getDeathSound()
protected SoundEvent
getHurtSound(DamageSource source)
getHurtSound(DamageSource source)
method_6011(class_1282 arg0)
getHurtSound(DamageSource arg0)
protected void
defineSynchedData(SynchedEntityData$Builder entityData)
defineSynchedData(SynchedEntityData$Builder entityData)
method_5693(class_2945$class_9222 arg0)
initDataTracker(DataTracker$Builder arg0)
public static DefaultAttributeContainer$Builder
createAttributes()
createAttributes()
method_26921()
createShulkerAttributes()
protected BodyControl
createBodyControl()
createBodyControl()
method_5963()
createBodyControl()
protected void
readAdditionalSaveData(ValueInput input)
readAdditionalSaveData(ValueInput input)
method_5749(class_11368 arg0)
readCustomData(ReadView arg0)
protected void
addAdditionalSaveData(ValueOutput output)
addAdditionalSaveData(ValueOutput output)
method_5652(class_11372 arg0)
writeCustomData(WriteView arg0)
public void
tick()
tick()
method_5773()
tick()
private void
findNewAttachment()
findNewAttachment()
method_33348()
tryAttachOrTeleport()
protected Box
makeBoundingBox(Vec3 position)
makeBoundingBox(Vec3 position)
method_65341(class_243 arg0)
calculateDefaultBoundingBox(Vec3d arg0)
private static float
getPhysicalPeek(float amount)
getPhysicalPeek(float amount)
method_33342(float arg0)
getExtraLength(float openProgress)
public EntityDimensions
getDefaultDimensions(Pose pose)
getDefaultDimensions(Pose pose)
method_55694(class_4050 arg0)
getBaseDimensions(EntityPose arg0)
private boolean
updatePeekAmount()
updatePeekAmount()
method_33349()
tickOpenProgress()
private void
onPeekAmountChange()
onPeekAmountChange()
method_33350()
moveEntities()
public static Box
getProgressAabb(float size, Direction direction, float progressTo, Vec3 position)
getProgressAabb(float size, Direction direction, float progressTo, Vec3 position)
method_33346(float arg0, class_2350 arg1, float arg2, class_243 arg3)
calculateBoundingBox(float scale, Direction facing, float extraLength, Vec3d pos)
public static Box
getProgressDeltaAabb(float size, Direction direction, float progressFrom, float progressTo, Vec3 position)
getProgressDeltaAabb(float size, Direction direction, float progressFrom, float progressTo, Vec3 position)
method_33347(float arg0, class_2350 arg1, float arg2, float arg3, class_243 arg4)
calculateBoundingBox(float scale, Direction facing, float lastExtraLength, float extraLength, Vec3d pos)
public boolean
startRiding(Entity entity, boolean force, boolean sendEventAndTriggers)
startRiding(Entity entity, boolean force, boolean sendEventAndTriggers)
method_5873(class_1297 arg0, boolean arg1, boolean arg2)
startRiding(Entity arg0, boolean arg1, boolean arg2)
public void
stopRiding()
stopRiding()
method_5848()
stopRiding()
public EntityData
finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, SpawnGroupData groupData)
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)
public void
move(MoverType moverType, Vec3 delta)
move(MoverType moverType, Vec3 delta)
method_5784(class_1313 arg0, class_243 arg1)
move(MovementType arg0, Vec3d arg1)
public Vec3d
getDeltaMovement()
getDeltaMovement()
method_18798()
getVelocity()
public void
setDeltaMovement(Vec3 deltaMovement)
setDeltaMovement(Vec3 deltaMovement)
method_18799(class_243 arg0)
setVelocity(Vec3d arg0)
public void
setPos(double x, double y, double z)
setPos(double x, double y, double z)
method_5814(double arg0, double arg1, double arg2)
setPosition(double arg0, double arg1, double arg2)
protected Direction
findAttachableSurface(BlockPos target)
findAttachableSurface(BlockPos target)
method_24351(class_2338 arg0)
findAttachSide(BlockPos pos)
private boolean
canStayAt(BlockPos target, Direction face)
canStayAt(BlockPos target, Direction face)
method_24350(class_2338 arg0, class_2350 arg1)
canStay(BlockPos pos, Direction direction)
private boolean
isPositionBlocked(BlockPos target)
isPositionBlocked(BlockPos target)
method_33351(class_2338 arg0)
isInvalidPosition(BlockPos pos)
protected boolean
teleportSomewhere()
teleportSomewhere()
method_7127()
tryTeleport()
public PositionInterpolator
getInterpolation()
getInterpolation()
method_66233()
getInterpolator()
public boolean
hurtServer(ServerLevel level, DamageSource source, float damage)
hurtServer(ServerLevel level, DamageSource source, float damage)
method_64397(class_3218 arg0, class_1282 arg1, float arg2)
damage(ServerWorld arg0, DamageSource arg1, float arg2)
private boolean
isClosed()
isClosed()
method_7124()
isClosed()
private void
hitByShulkerBullet()
hitByShulkerBullet()
method_31547()
spawnNewShulker()
public boolean
canBeCollidedWith(Entity other)
canBeCollidedWith(Entity other)
method_30948(class_1297 arg0)
isCollidable(Entity arg0)
public Direction
getAttachFace()
getAttachFace()
method_7119()
getAttachedFace()
private void
setAttachFace(Direction attachmentDirection)
setAttachFace(Direction attachmentDirection)
method_35192(class_2350 arg0)
setAttachedFace(Direction face)
public void
onSyncedDataUpdated(EntityDataAccessor<?> accessor)
onSyncedDataUpdated(EntityDataAccessor<?> accessor)
method_5674(class_2940<?> arg0)
onTrackedDataSet(TrackedData<?> arg0)
private int
getRawPeekAmount()
getRawPeekAmount()
method_7115()
getPeekAmount()
private void
setRawPeekAmount(int amount)
setRawPeekAmount(int amount)
method_7122(int arg0)
setPeekAmount(int peekAmount)
public float
getClientPeekAmount(float a)
getClientPeekAmount(float a)
method_7116(float arg0)
getOpenProgress(float tickProgress)
public void
recreateFromPacket(ClientboundAddEntityPacket packet)
recreateFromPacket(ClientboundAddEntityPacket packet)
method_31471(class_2604 arg0)
onSpawnPacket(EntitySpawnS2CPacket arg0)
public int
getMaxHeadXRot()
getMaxHeadXRot()
method_5978()
getMaxLookPitchChange()
public int
getMaxHeadYRot()
getMaxHeadYRot()
method_5986()
getMaxHeadRotation()
public void
push(Entity entity)
push(Entity entity)
method_5697(class_1297 arg0)
pushAwayFrom(Entity arg0)
public Vec3d
getRenderPosition(float a)
getRenderPosition(float a)
method_33352(float arg0)
getRenderPositionOffset(float tickProgress)
protected float
sanitizeScale(float scale)
sanitizeScale(float scale)
method_56077(float arg0)
clampScale(float arg0)
private void
setVariant(Optional<DyeColor> color)
setVariant(Optional<DyeColor> color)
method_47880(Optional<class_1767> arg0)
setColor(Optional<DyeColor> color)
public Optional<DyeColor>
getVariant()
getVariant()
method_47881()
getColorOptional()
public DyeColor
getColor()
getColor()
method_7121()
getColor()
public <T> T
get(DataComponentType<? extends T> type)
get(DataComponentType<? extends T> type)
method_58694(class_9331<? extends T> arg0)
get(ComponentType<? extends T> arg0)
protected void
applyImplicitComponents(DataComponentGetter components)
applyImplicitComponents(DataComponentGetter components)
method_66649(class_9473 arg0)
copyComponentsFrom(ComponentsAccess arg0)
protected <T> boolean
applyImplicitComponent(DataComponentType<T> type, T value)
applyImplicitComponent(DataComponentType<T> type, T value)
method_66654(class_9331<T> arg0, T arg1)
setApplicableComponent(ComponentType<T> arg0, T arg1)