Class EyeOfEnderEntity
- All Implemented Interfaces:
FlyingItemEntity
,CommandOutput
,Nameable
,EntityLike
- Mappings:
Namespace Name official byx
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_36331, firstUpdate, FLAGS, fluidHeight, FREEZING_DAMAGE_INTERVAL, GLOWING_FLAG_INDEX, 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, onGround, PASSENGERS_KEY, POSE, prevHorizontalSpeed, prevPitch, prevX, prevY, prevYaw, prevZ, random, ridingCooldown, speed, submergedInWater, timeUntilRegen, touchingWater, uuid, UUID_KEY, uuidString, VELOCITY_AFFECTING_POS_Y_OFFSET, velocityDirty, velocityModified, verticalCollision, wasInPowderSnow, wasOnFire, world
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, calculateBoundsForPose, 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, getHeightOffset, getHighSpeedSplashSound, getHorizontalFacing, getHoverEvent, getId, getItemsEquipped, getJumpVelocityMultiplier, getLandingBlockState, getLandingPos, getLeashOffset, getLeashOffset, getLeashPos, getLerpedPos, getMaxAir, getMaxNetherPortalTime, getMinFreezeDamageTicks, getMountedHeightOffset, getMoveEffect, getMovementDirection, getName, getOppositeRotationVector, getOppositeRotationVector, getParticleX, getParticleZ, getPassengerDismountOffset, getPassengerList, getPassengersDeep, getPermissionLevel, getPickBlockStack, getPistonBehavior, getPitch, getPitch, getPortalRect, getPos, getPose, getRandomBodyY, getRemovalReason, getRenderDistanceMultiplier, getRootVehicle, getRotationClient, getRotationVec, getRotationVecClient, getRotationVector, getRotationVector, getSafeFallDistance, getSavedEntityId, getScoreboardTeam, getServer, getSoundCategory, getSplashSound, getStackReference, getStandingEyeHeight, getStepHeight, getSteppingBlockState, getSteppingPos, getSwimHeight, getSwimSound, getSyncedPos, getTargetingMargin, getTeamColorValue, getTeleportTarget, getTrackedPosition, getType, 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, isInLava, isInPose, isInRange, isInRange, isInsideWall, isInsideWaterOrBubbleColumn, isInSneakingPose, isInSwimmingPose, isInvisible, isInvisibleTo, isInvulnerable, isInvulnerableTo, isLiving, isLogicalSideForUpdatingMovement, isOnFire, isOnGround, isPartOf, isPlayer, isPushable, isPushedByFluids, isRegionUnloaded, isRemoved, isSilent, isSneaking, isSneaky, isSpectator, isSprinting, isSubmergedIn, isSubmergedInWater, isSwimming, isTeammate, isTeamPlayer, isTouchingWater, isTouchingWaterOrRain, isWet, kill, limitFallDistance, lookAt, move, moveToWorld, occludeVibrationSignals, offsetX, offsetZ, onBlockCollision, onBubbleColumnCollision, onBubbleColumnSurfaceCollision, onDamaged, onDataTrackerUpdate, onKilledOther, onLanding, onPassengerLookAround, onPlayerCollision, onRemoved, onSpawnPacket, onStartedTrackingBy, onStoppedTrackingBy, onStruckByLightning, onSwimmingStart, onTrackedDataSet, playExtinguishSound, playSound, playSoundIfNotSilent, playStepSound, 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, setPitch, setPos, setPose, setPosition, setPosition, setRemoved, setRenderDistanceMultiplier, setRotation, setSilent, setSneaking, setSprinting, setStepHeight, setSwimming, setUuid, setVelocity, setVelocity, setYaw, shouldBroadcastConsoleToOps, 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, updatePosition, updatePositionAndAngles, updateSwimming, updateTrackedHeadRotation, updateTrackedPosition, updateTrackedPositionAndAngles, updateVelocity, updateWaterState, wouldPoseNotCollide, 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
Lbyx;b:Lacl;
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
Lbyx;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
Lbyx;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
Lbyx;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
Lbyx;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
Lbyx;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>
Lbfh;<init>(Lbfl;Lcmi;)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>
Lbyx;<init>(Lcmi;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
Lbyx;a(Lcfv;)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 j
Lbyx;j()Lcfv;
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 i
Lbzb;i()Lcfv;
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_
Lbfh;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
Lbfh;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
Lbyx;a(Lgt;)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
Lbfh;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 has 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
Lbfh;b(Lre;)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 has 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
Lbfh;a(Lre;)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 bh
Lbfh;bh()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 cl
Lbfh;cl()Z
intermediary method_5732
Lnet/minecraft/class_1297;method_5732()Z
named isAttackable
Lnet/minecraft/entity/Entity;isAttackable()Z
-