Class EyeOfEnderEntity
- All Implemented Interfaces:
FlyingItemEntity
,CommandOutput
,Nameable
,EntityLike
- Mappings:
Namespace Name official ccf
intermediary net/minecraft/class_1672
named net/minecraft/entity/EyeOfEnderEntity
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.Entity
Entity.MoveEffect, Entity.PositionUpdater, Entity.RemovalReason
-
Field Summary
Modifier and TypeFieldDescriptionprivate boolean
private static final TrackedData<ItemStack>
private int
private double
private double
private double
Fields inherited from class net.minecraft.entity.Entity
age, collidedSoftly, dataTracker, DEFAULT_FRICTION, DEFAULT_MIN_FREEZE_DAMAGE_TICKS, DEFAULT_PORTAL_COOLDOWN, distanceTraveled, FALL_FLYING_FLAG_INDEX, fallDistance, field_29991, field_44870, field_44871, field_44872, firstUpdate, FLAGS, fluidHeight, FREEZING_DAMAGE_INTERVAL, GLOWING_FLAG_INDEX, groundCollision, horizontalCollision, horizontalSpeed, ID_KEY, ignoreCameraFrustum, inNetherPortal, inPowderSnow, intersectionChecked, lastNetherPortalPosition, lastRenderX, lastRenderY, lastRenderZ, MAX_COMMAND_TAGS, MAX_RIDING_COOLDOWN, MIN_RISING_BUBBLE_COLUMN_SPEED, movementMultiplier, netherPortalTime, noClip, ON_FIRE_FLAG_INDEX, PASSENGERS_KEY, POSE, prevHorizontalSpeed, prevPitch, prevX, prevY, prevYaw, prevZ, random, ridingCooldown, speed, submergedInWater, supportingBlockPos, timeUntilRegen, touchingWater, uuid, UUID_KEY, uuidString, velocityDirty, velocityModified, verticalCollision, wasInPowderSnow, wasOnFire
Fields inherited from interface net.minecraft.server.command.CommandOutput
DUMMY
-
Constructor Summary
ConstructorDescriptionEyeOfEnderEntity
(EntityType<? extends EyeOfEnderEntity> type, World world) EyeOfEnderEntity
(World world, double x, double y, double z) -
Method Summary
Modifier and TypeMethodDescriptionfloat
getStack()
private ItemStack
protected void
Initializes data tracker.void
initTargetPos
(BlockPos pos) Sets where the eye will fly towards.boolean
Returns whether the entity can be attacked by players.void
Reads custom data fromnbt
.void
void
setVelocityClient
(double x, double y, double z) boolean
shouldRender
(double distance) void
tick()
Ticks this entity.void
Writes custom data tonbt
.Methods inherited from class net.minecraft.entity.Entity
addAirTravelEffects, addCommandTag, addFlapEffects, addPassenger, addVelocity, addVelocity, adjustMovementForCollisions, adjustMovementForPiston, adjustMovementForSneaking, animateDamage, applyDamageEffects, applyMirror, applyRotation, attemptTickInVoid, baseTick, bypassesLandingEffects, bypassesSteppingEffects, calculateBoundingBox, calculateDimensions, calculateNextStepSoundDistance, canAddPassenger, canAvoidTraps, canBeHitByProjectile, canBeSpectated, canExplosionDestroyBlock, canFreeze, canHit, canModifyAt, canMoveVoluntarily, canSprintAsVehicle, canStartRiding, canUsePortals, changeLookDirection, checkBlockCollision, checkDespawn, checkWaterState, collidesWith, collidesWithStateAtPos, copyFrom, copyPositionAndRotation, couldAcceptPassenger, createSpawnPacket, damage, detach, discard, dismountVehicle, distanceTo, doesNotCollide, doesRenderOnFire, dropItem, dropItem, dropStack, dropStack, emitGameEvent, emitGameEvent, entityDataRequiresOperator, equals, equipStack, extinguish, extinguishWithSound, fall, getAir, getArmorItems, getBlockPos, getBlockStateAtPos, getBlockX, getBlockY, getBlockZ, getBodyY, getBodyYaw, getBoundingBox, getBurningDuration, getCameraPosVec, getChunkPos, getClientCameraPosVec, getCommandSource, getCommandTags, getControllingPassenger, getControllingVehicle, getCustomName, getDamageSources, getDataTracker, getDefaultName, getDefaultPortalCooldown, getDimensions, getDisplayName, getEffectiveExplosionResistance, getEntityName, getEntityWorld, getEyeHeight, getEyeHeight, getEyePos, getEyeY, getFireTicks, getFirstPassenger, getFlag, getFluidHeight, getFreezingScale, getFrozenTicks, getHandItems, getHandPosOffset, getHeadYaw, getHeight, getHighSpeedSplashSound, getHorizontalFacing, getHoverEvent, getId, getItemsEquipped, getJumpVelocityMultiplier, getLandingBlockState, getLandingPos, getLeashOffset, getLeashOffset, getLeashPos, getLerpedPos, getLerpTargetPitch, getLerpTargetX, getLerpTargetY, getLerpTargetYaw, getLerpTargetZ, getMaxAir, getMaxNetherPortalTime, getMinFreezeDamageTicks, getMoveEffect, getMovementDirection, getName, getNameLabelHeight, getOppositeRotationVector, getOppositeRotationVector, getParticleX, getParticleZ, getPassengerAttachmentPos, getPassengerDismountOffset, getPassengerList, getPassengerRidingPos, getPassengersDeep, getPermissionLevel, getPickBlockStack, getPistonBehavior, getPitch, getPitch, getPortalCooldown, getPortalRect, getPos, getPose, getPosWithYOffset, getRandomBodyY, getRemovalReason, getRenderDistanceMultiplier, getRidingOffset, getRootVehicle, getRotationClient, getRotationVec, getRotationVecClient, getRotationVector, getRotationVector, getSafeFallDistance, getSavedEntityId, getScoreboardTeam, getServer, getSoundCategory, getSplashSound, getStackReference, getStandingEyeHeight, getStepHeight, getSteppingBlockState, getSteppingPos, getStepSoundPos, getSwimHeight, getSwimSound, getSyncedPos, getTargetingMargin, getTeamColorValue, getTeleportTarget, getTrackedPosition, getType, getUnscaledRidingOffset, getUuid, getUuidAsString, getVehicle, getVelocity, getVelocityAffectingPos, getVelocityMultiplier, getVisibilityBoundingBox, getWidth, getWorld, getX, getY, getYaw, getYaw, getZ, handleAttack, handleFallDamage, handleStatus, hasCollidedSoftly, hasControllingPassenger, hasCustomName, hashCode, hasNoGravity, hasPassenger, hasPassenger, hasPassengerDeep, hasPassengers, hasPermissionLevel, hasPlayerRider, hasPortalCooldown, hasVehicle, interact, interactAt, isAlive, isCollidable, isConnectedThroughVehicle, isCrawling, isCustomNameVisible, isDescending, isFireImmune, isFlappingWings, isFrozen, isGlowing, isGlowingLocal, isImmuneToExplosion, isInFluid, isInLava, isInPose, isInRange, isInRange, isInsideWall, isInsideWaterOrBubbleColumn, isInSneakingPose, isInSwimmingPose, isInvisible, isInvisibleTo, isInvulnerable, isInvulnerableTo, isLiving, isLogicalSideForUpdatingMovement, isOnFire, isOnGround, isOnRail, isPartOf, isPlayer, isPushable, isPushedByFluids, isRegionUnloaded, isRemoved, isSilent, isSneaking, isSneaky, isSpectator, isSprinting, isSubmergedIn, isSubmergedInWater, isSupportedBy, isSwimming, isTeammate, isTeamPlayer, isTouchingWater, isTouchingWaterOrRain, isWet, kill, lerpPosAndRotation, limitFallDistance, lookAt, move, moveToWorld, occludeVibrationSignals, offsetX, offsetZ, onBlockCollision, onBubbleColumnCollision, onBubbleColumnSurfaceCollision, onDamaged, onDataTrackerUpdate, onKilledOther, onLanding, onPassengerLookAround, onPlayerCollision, onRemoved, onSpawnPacket, onStartedTrackingBy, onStoppedTrackingBy, onStruckByLightning, onSwimmingStart, onTrackedDataSet, playCombinationStepSounds, playExtinguishSound, playSecondaryStepSound, playSound, playSoundIfNotSilent, playStepSound, playSwimSound, playSwimSound, populateCrashReport, positionInPortal, pushAwayFrom, pushOutOfBlocks, raycast, readNbt, refreshPosition, refreshPositionAfterTeleport, refreshPositionAfterTeleport, refreshPositionAndAngles, refreshPositionAndAngles, reinitDimensions, remove, removeAllPassengers, removeFromDimension, removePassenger, removeScoreboardTag, requestTeleport, requestTeleportAndDismount, requestTeleportOffset, resetPortalCooldown, resetPosition, saveNbt, saveSelfNbt, scheduleVelocityUpdate, sendMessage, setAir, setBodyYaw, setBoundingBox, setChangeListener, setCustomName, setCustomNameVisible, setFireTicks, setFlag, setFrozenTicks, setGlowing, setHeadYaw, setId, setInNetherPortal, setInPowderSnow, setInvisible, setInvulnerable, setNoGravity, setOnFire, setOnFireFor, setOnFireFromLava, setOnGround, setOnGround, setPitch, setPortalCooldown, setPos, setPose, setPosition, setPosition, setRemoved, setRenderDistanceMultiplier, setRotation, setSilent, setSneaking, setSprinting, setStepHeight, setSwimming, setUuid, setVelocity, setVelocity, setWorld, setYaw, shouldBroadcastConsoleToOps, shouldControlVehicles, shouldDismountUnderwater, shouldEscapePowderSnow, shouldReceiveFeedback, shouldRender, shouldRenderName, shouldSave, shouldSetPositionOnLoad, shouldSpawnSprintingParticles, shouldTrackOutput, slowMovement, spawnSprintingParticles, squaredDistanceTo, squaredDistanceTo, squaredDistanceTo, startRiding, startRiding, stopRiding, streamPassengersAndSelf, streamSelfAndPassengers, teleport, teleport, tickInVoid, tickPortal, tickPortalCooldown, tickRiding, toNbtList, toNbtList, toString, tryCheckBlockCollision, unsetRemoved, updateEventHandler, updateKilledAdvancementCriterion, updateMovementInFluid, updatePassengerForDismount, updatePassengerPosition, updatePassengerPosition, updatePosition, updatePositionAndAngles, updateSupportingBlockPos, updateSwimming, updateTrackedHeadRotation, updateTrackedPosition, updateTrackedPositionAndAngles, updateVelocity, updateWaterState, writeNbt
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.minecraft.server.command.CommandOutput
cannotBeSilenced
-
Field Details
-
ITEM
- Mappings:
Namespace Name Mixin selector official b
Lccf;b:Laee;
intermediary field_17080
Lnet/minecraft/class_1672;field_17080:Lnet/minecraft/class_2940;
named ITEM
Lnet/minecraft/entity/EyeOfEnderEntity;ITEM:Lnet/minecraft/entity/data/TrackedData;
-
targetX
private double targetX- Mappings:
Namespace Name Mixin selector official c
Lccf;c:D
intermediary field_7619
Lnet/minecraft/class_1672;field_7619:D
named targetX
Lnet/minecraft/entity/EyeOfEnderEntity;targetX:D
-
targetY
private double targetY- Mappings:
Namespace Name Mixin selector official d
Lccf;d:D
intermediary field_7618
Lnet/minecraft/class_1672;field_7618:D
named targetY
Lnet/minecraft/entity/EyeOfEnderEntity;targetY:D
-
targetZ
private double targetZ- Mappings:
Namespace Name Mixin selector official e
Lccf;e:D
intermediary field_7617
Lnet/minecraft/class_1672;field_7617:D
named targetZ
Lnet/minecraft/entity/EyeOfEnderEntity;targetZ:D
-
lifespan
private int lifespan- Mappings:
Namespace Name Mixin selector official f
Lccf;f:I
intermediary field_7620
Lnet/minecraft/class_1672;field_7620:I
named lifespan
Lnet/minecraft/entity/EyeOfEnderEntity;lifespan:I
-
dropsItem
private boolean dropsItem- Mappings:
Namespace Name Mixin selector official g
Lccf;g:Z
intermediary field_7621
Lnet/minecraft/class_1672;field_7621:Z
named dropsItem
Lnet/minecraft/entity/EyeOfEnderEntity;dropsItem:Z
-
-
Constructor Details
-
EyeOfEnderEntity
- Mappings:
Namespace Name Mixin selector official <init>
Lbiq;<init>(Lbiu;Lcpv;)V
intermediary <init>
Lnet/minecraft/class_1297;<init>(Lnet/minecraft/class_1299;Lnet/minecraft/class_1937;)V
named <init>
Lnet/minecraft/entity/Entity;<init>(Lnet/minecraft/entity/EntityType;Lnet/minecraft/world/World;)V
-
EyeOfEnderEntity
- Mappings:
Namespace Name Mixin selector official <init>
Lccf;<init>(Lcpv;DDD)V
intermediary <init>
Lnet/minecraft/class_1672;<init>(Lnet/minecraft/class_1937;DDD)V
named <init>
Lnet/minecraft/entity/EyeOfEnderEntity;<init>(Lnet/minecraft/world/World;DDD)V
-
-
Method Details
-
setItem
- Mappings:
Namespace Name Mixin selector official a
Lccf;a(Lcjf;)V
intermediary method_16933
Lnet/minecraft/class_1672;method_16933(Lnet/minecraft/class_1799;)V
named setItem
Lnet/minecraft/entity/EyeOfEnderEntity;setItem(Lnet/minecraft/item/ItemStack;)V
-
getTrackedItem
- Mappings:
Namespace Name Mixin selector official s
Lccf;s()Lcjf;
intermediary method_16935
Lnet/minecraft/class_1672;method_16935()Lnet/minecraft/class_1799;
named getTrackedItem
Lnet/minecraft/entity/EyeOfEnderEntity;getTrackedItem()Lnet/minecraft/item/ItemStack;
-
getStack
- Specified by:
getStack
in interfaceFlyingItemEntity
- Mappings:
Namespace Name Mixin selector official q
Lccj;q()Lcjf;
intermediary method_7495
Lnet/minecraft/class_3856;method_7495()Lnet/minecraft/class_1799;
named getStack
Lnet/minecraft/entity/FlyingItemEntity;getStack()Lnet/minecraft/item/ItemStack;
-
initDataTracker
protected void initDataTracker()Initializes data tracker.- Specified by:
initDataTracker
in classEntity
- Mappings:
Namespace Name Mixin selector official a_
Lbiq;a_()V
intermediary method_5693
Lnet/minecraft/class_1297;method_5693()V
named initDataTracker
Lnet/minecraft/entity/Entity;initDataTracker()V
-
shouldRender
public boolean shouldRender(double distance) - Overrides:
shouldRender
in classEntity
- Mappings:
Namespace Name Mixin selector official a
Lbiq;a(D)Z
intermediary method_5640
Lnet/minecraft/class_1297;method_5640(D)Z
named shouldRender
Lnet/minecraft/entity/Entity;shouldRender(D)Z
-
initTargetPos
Sets where the eye will fly towards. If close enough, it will fly directly towards it, otherwise, it will fly upwards, in the direction of the BlockPos.- Parameters:
pos
- the block the eye of ender is drawn towards- Mappings:
Namespace Name Mixin selector official a
Lccf;a(Lgw;)V
intermediary method_7478
Lnet/minecraft/class_1672;method_7478(Lnet/minecraft/class_2338;)V
named initTargetPos
Lnet/minecraft/entity/EyeOfEnderEntity;initTargetPos(Lnet/minecraft/util/math/BlockPos;)V
-
setVelocityClient
public void setVelocityClient(double x, double y, double z) - Overrides:
setVelocityClient
in classEntity
- Mappings:
Namespace Name Mixin selector official l
Lbiq;l(DDD)V
intermediary method_5750
Lnet/minecraft/class_1297;method_5750(DDD)V
named setVelocityClient
Lnet/minecraft/entity/Entity;setVelocityClient(DDD)V
-
tick
public void tick()Ticks this entity. -
writeCustomDataToNbt
Writes custom data tonbt
. Subclasses have to implement this.NBT is a storage format; therefore, a data from NBT is loaded to an entity instance's fields, which are used for other operations instead of the NBT. The data is written back to NBT when saving the entity.
- Specified by:
writeCustomDataToNbt
in classEntity
- See Also:
- Mappings:
Namespace Name Mixin selector official b
Lbiq;b(Lqw;)V
intermediary method_5652
Lnet/minecraft/class_1297;method_5652(Lnet/minecraft/class_2487;)V
named writeCustomDataToNbt
Lnet/minecraft/entity/Entity;writeCustomDataToNbt(Lnet/minecraft/nbt/NbtCompound;)V
-
readCustomDataFromNbt
Reads custom data fromnbt
. Subclasses have to implement this.NBT is a storage format; therefore, a data from NBT is loaded to an entity instance's fields, which are used for other operations instead of the NBT. The data is written back to NBT when saving the entity.
nbt
might not have all expected keys, or might have a key whose value does not meet the requirement (such as the type or the range). This method should fall back to a reasonable default value instead of throwing an exception.- Specified by:
readCustomDataFromNbt
in classEntity
- See Also:
- Mappings:
Namespace Name Mixin selector official a
Lbiq;a(Lqw;)V
intermediary method_5749
Lnet/minecraft/class_1297;method_5749(Lnet/minecraft/class_2487;)V
named readCustomDataFromNbt
Lnet/minecraft/entity/Entity;readCustomDataFromNbt(Lnet/minecraft/nbt/NbtCompound;)V
-
getBrightnessAtEyes
public float getBrightnessAtEyes()- Overrides:
getBrightnessAtEyes
in classEntity
- Mappings:
Namespace Name Mixin selector official bm
Lbiq;bm()F
intermediary method_5718
Lnet/minecraft/class_1297;method_5718()F
named getBrightnessAtEyes
Lnet/minecraft/entity/Entity;getBrightnessAtEyes()F
-
isAttackable
public boolean isAttackable()Returns whether the entity can be attacked by players.Note that this is not called for most entities defined in vanilla as unattackable (such as
ItemEntity
andExperienceOrbEntity
) as trying to attack them kicks the player.- Overrides:
isAttackable
in classEntity
- Returns:
- whether the entity can be attacked by players
- See Also:
- Mappings:
Namespace Name Mixin selector official cp
Lbiq;cp()Z
intermediary method_5732
Lnet/minecraft/class_1297;method_5732()Z
named isAttackable
Lnet/minecraft/entity/Entity;isAttackable()Z
-