Package net.minecraft.entity
Class EyeOfEnderEntity
java.lang.Object
net.minecraft.entity.Entity
net.minecraft.entity.EyeOfEnderEntity
- All Implemented Interfaces:
EntityLike
,FlyingItemEntity
,CommandOutput
,Nameable
@EnvironmentInterfaces(@EnvironmentInterface(value=CLIENT,itf=FlyingItemEntity.class)) public class EyeOfEnderEntity extends Entity implements FlyingItemEntity
- Mappings:
Namespace Name official bhu
intermediary net/minecraft/class_1672
named net/minecraft/entity/EyeOfEnderEntity
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.Entity
Entity.class_5799, Entity.PositionUpdater, Entity.RemovalReason
-
Field Summary
Fields Modifier and Type Field Description private boolean
dropsItem
private static TrackedData<ItemStack>
ITEM
private int
lifespan
private double
targetX
private double
targetY
private double
targetZ
Fields inherited from class net.minecraft.entity.Entity
age, dataTracker, distanceTraveled, fallDistance, field_28627, field_28629, firstUpdate, FLAGS, fluidHeight, glowing, horizontalCollision, horizontalSpeed, ignoreCameraFrustum, inanimate, inNetherPortal, inPowderSnow, lastNetherPortalPosition, lastRenderX, lastRenderY, lastRenderZ, LOGGER, movementMultiplier, netherPortalTime, noClip, onGround, pitch, POSE, prevHorizontalSpeed, prevPitch, prevX, prevY, prevYaw, prevZ, pushSpeedReduction, random, ridingCooldown, stepHeight, submergedFluidTag, submergedInWater, timeUntilRegen, touchingWater, uuid, uuidString, velocityDirty, velocityModified, verticalCollision, wasInPowderSnow, world, yaw
Fields inherited from interface net.minecraft.server.command.CommandOutput
DUMMY
-
Constructor Summary
Constructors Constructor Description EyeOfEnderEntity(EntityType<? extends EyeOfEnderEntity> type, World world)
EyeOfEnderEntity(World world, double x, double y, double z)
-
Method Summary
Modifier and Type Method Description Packet<?>
createSpawnPacket()
float
getBrightnessAtEyes()
ItemStack
getStack()
private ItemStack
getTrackedItem()
protected void
initDataTracker()
void
initTargetPos(BlockPos pos)
Sets where the eye will fly towards.boolean
isAttackable()
void
readCustomDataFromTag(CompoundTag tag)
void
setItem(ItemStack stack)
void
setVelocityClient(double x, double y, double z)
boolean
shouldRender(double distance)
void
tick()
void
writeCustomDataToTag(CompoundTag tag)
Methods inherited from class net.minecraft.entity.Entity
addPassenger, addScoreboardTag, addVelocity, adjustMovementForCollisions, adjustMovementForCollisions, adjustMovementForPiston, adjustMovementForSneaking, adjustSingleAxisMovementForCollisions, animateDamage, applyMirror, applyRotation, attemptTickInVoid, baseTick, bypassesLandingEffects, bypassesSteppingEffects, calculateBoundsForPose, calculateDimensions, calculateNextStepSoundDistance, canAddPassenger, canAvoidTraps, canBeRiddenInWater, canBeSpectated, canExplosionDestroyBlock, canFly, canFreeze, canStartRiding, canUsePortals, changeLookDirection, checkBlockCollision, checkDespawn, checkWaterState, collides, collidesWith, collidesWithStateAtPos, copyFrom, copyPositionAndRotation, damage, dealDamage, detach, discard, dismountVehicle, distanceTo, doesNotCollide, doesRenderOnFire, dropItem, dropItem, dropStack, dropStack, emitGameEvent, emitGameEvent, entityDataRequiresOperator, equals, equipStack, extinguish, fall, fromTag, getAir, getArmorItems, getBlockPos, getBlockX, getBlockY, getBlockZ, getBodyY, getBoundingBox, getBurningDuration, getCameraPosVec, getChunkPos, getClientCameraPosVec, getCommandSource, getCustomName, getDataTracker, getDefaultName, getDefaultNetherPortalCooldown, getDimensions, getDisplayName, getEffectiveExplosionResistance, getEntityName, getEntityWorld, getEyeHeight, getEyeHeight, getEyeY, getFireTicks, getFirstPassenger, getFlag, getFluidHeight, getFreezingScale, getFrozenTicks, getHeadYaw, getHeight, getHeightOffset, getHighSpeedSplashSound, getHorizontalFacing, getHoverEvent, getId, getItemsEquipped, getItemsHand, getJumpVelocityMultiplier, getLandingBlockState, getLandingPos, getLerpedPos, getMaxAir, getMaxNetherPortalTime, getMinFreezeDamageTicks, getMountedHeightOffset, getMovementDirection, getName, getOppositeRotationVector, getOppositeRotationVector, getParticleX, getParticleZ, getPassengerDismountOffset, getPassengerList, getPassengersDeep, getPermissionLevel, getPickBlockStack, getPistonBehavior, getPitch, getPos, getPose, getPrimaryPassenger, getRandomBodyY, getRenderDistanceMultiplier, getRootVehicle, getRotationClient, getRotationVec, getRotationVecClient, getRotationVector, getRotationVector, getSafeFallDistance, getSavedEntityId, getScoreboardTags, getScoreboardTeam, getServer, getSoundCategory, getSplashSound, getStandingEyeHeight, getSwimSound, getTargetingMargin, getTeamColorValue, getTeleportTarget, getTrackedPosition, getType, getUuid, getUuidAsString, getVehicle, getVelocity, getVelocityAffectingPos, getVelocityMultiplier, getVisibilityBoundingBox, getWidth, getX, getY, getYaw, getZ, handleAttack, handleFallDamage, handleStatus, hasCustomName, hashCode, hasNetherPortalCooldown, hasNoGravity, hasPassenger, hasPassengerDeep, hasPassengers, hasPassengerType, hasPermissionLevel, hasPlayerRider, hasVehicle, hasWings, interact, interactAt, isAlive, isCollidable, isConnectedThroughVehicle, isCustomNameVisible, isDescending, isFireImmune, isFreezing, isGlowing, isImmuneToExplosion, isInLava, isInRange, isInsideWall, isInsideWaterOrBubbleColumn, isInSneakingPose, isInSwimmingPose, isInvisible, isInvisibleTo, isInvulnerable, isInvulnerableTo, isLiving, isLogicalSideForUpdatingMovement, isOnFire, isOnGround, isPartOf, isPlayer, isPushable, isRemoved, isSilent, isSneaking, isSneaky, isSpectator, isSprinting, isSubmergedIn, isSubmergedInWater, isSwimming, isTeammate, isTeamPlayer, isTouchingWater, isTouchingWaterOrRain, isWet, kill, lookAt, method_29241, method_29919, method_30330, method_30633, method_30951, method_31744, method_32318, method_32877, method_33332, method_33567, method_33568, method_33569, method_33570, method_33571, method_33573, method_33574, method_33575, move, moveToWorld, occludeVibrationSignals, offsetX, offsetZ, onBlockCollision, onBubbleColumnCollision, onBubbleColumnSurfaceCollision, onKilledOther, onPassengerLookAround, onPlayerCollision, onSpawnPacket, onStartedTrackingBy, onStoppedTrackingBy, onStruckByLightning, onSwimmingStart, onTrackedDataSet, playFlySound, playSound, playStepSound, playSwimSound, populateCrashReport, pushAwayFrom, pushOutOfBlocks, raycast, refreshPosition, refreshPositionAfterTeleport, refreshPositionAfterTeleport, refreshPositionAndAngles, refreshPositionAndAngles, remove, removeAllPassengers, removeFromDimension, removePassenger, removeScoreboardTag, requestTeleport, resetNetherPortalCooldown, resetPosition, saveSelfToTag, saveToTag, scheduleVelocityUpdate, sendSystemMessage, setAir, setBoundingBox, setCustomName, setCustomNameVisible, setEntityId, setFireTicks, setFlag, setFrozenTicks, setGlowing, setHeadYaw, setInNetherPortal, setInPowderSnow, setInvisible, setInvulnerable, setNoGravity, setOnFire, setOnFireFor, setOnFireFromLava, setOnGround, setPos, setPose, setPosition, setRemoved, setRenderDistanceMultiplier, setRotation, setSilent, setSneaking, setSprinting, setSwimming, setUuid, setVelocity, setVelocity, setYaw, shouldBroadcastConsoleToOps, shouldLeaveSwimmingPose, shouldReceiveFeedback, shouldRender, shouldRenderName, shouldSave, shouldSetPositionOnLoad, shouldSpawnSprintingParticles, shouldTrackOutput, slowMovement, spawnSprintingParticles, squaredDistanceTo, squaredDistanceTo, squaredDistanceTo, squaredHorizontalLength, startRiding, startRiding, stopRiding, streamPassengers, streamPassengersRecursively, teleport, tickInVoid, tickNetherPortal, tickNetherPortalCooldown, tickRiding, toListTag, toListTag, toString, toTag, unsetRemoved, updateKilledAdvancementCriterion, updateMovementInFluid, updatePassengerForDismount, updatePassengerPosition, updatePosition, updatePositionAndAngles, updateSwimming, updateTrackedHeadRotation, updateTrackedPosition, updateTrackedPosition, updateTrackedPositionAndAngles, updateVelocity, updateWaterState, wouldPoseNotCollide
-
Field Details
-
ITEM
- Mappings:
Namespace Name Mixin selector official b
Lbhu;b:Lvk;
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
Lbhu;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
Lbhu;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
Lbhu;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
Lbhu;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
Lbhu;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>
Laqv;<init>(Laqz;Lbtv;)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>
Lbhu;<init>(Lbtv;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 b
Lbhu;b(Lbnv;)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 h
Lbhu;h()Lbnv;
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 g
Lbhy;g()Lbnv;
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()- Specified by:
initDataTracker
in classEntity
- Mappings:
Namespace Name Mixin selector official e
Laqv;e()V
intermediary method_5693
Lnet/minecraft/class_1297;method_5693()V
named initDataTracker
Lnet/minecraft/entity/Entity;initDataTracker()V
-
shouldRender
- Overrides:
shouldRender
in classEntity
- Mappings:
Namespace Name Mixin selector official a
Laqv;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
Lbhu;a(Lfx;)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
- Overrides:
setVelocityClient
in classEntity
- Mappings:
Namespace Name Mixin selector official k
Laqv;k(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() -
writeCustomDataToTag
- Specified by:
writeCustomDataToTag
in classEntity
- Mappings:
Namespace Name Mixin selector official b
Laqv;b(Lmq;)V
intermediary method_5652
Lnet/minecraft/class_1297;method_5652(Lnet/minecraft/class_2487;)V
named writeCustomDataToTag
Lnet/minecraft/entity/Entity;writeCustomDataToTag(Lnet/minecraft/nbt/CompoundTag;)V
-
readCustomDataFromTag
- Specified by:
readCustomDataFromTag
in classEntity
- Mappings:
Namespace Name Mixin selector official a
Laqv;a(Lmq;)V
intermediary method_5749
Lnet/minecraft/class_1297;method_5749(Lnet/minecraft/class_2487;)V
named readCustomDataFromTag
Lnet/minecraft/entity/Entity;readCustomDataFromTag(Lnet/minecraft/nbt/CompoundTag;)V
-
getBrightnessAtEyes
public float getBrightnessAtEyes()- Overrides:
getBrightnessAtEyes
in classEntity
- Mappings:
Namespace Name Mixin selector official aU
Laqv;aU()F
intermediary method_5718
Lnet/minecraft/class_1297;method_5718()F
named getBrightnessAtEyes
Lnet/minecraft/entity/Entity;getBrightnessAtEyes()F
-
isAttackable
public boolean isAttackable()- Overrides:
isAttackable
in classEntity
- Mappings:
Namespace Name Mixin selector official bV
Laqv;bV()Z
intermediary method_5732
Lnet/minecraft/class_1297;method_5732()Z
named isAttackable
Lnet/minecraft/entity/Entity;isAttackable()Z
-
createSpawnPacket
- Specified by:
createSpawnPacket
in classEntity
- Mappings:
Namespace Name Mixin selector official P
Laqv;P()Lpa;
intermediary method_18002
Lnet/minecraft/class_1297;method_18002()Lnet/minecraft/class_2596;
named createSpawnPacket
Lnet/minecraft/entity/Entity;createSpawnPacket()Lnet/minecraft/network/Packet;
-