Class class_9508
- All Implemented Interfaces:
DataTracked,Ownable,ScoreHolder,CommandOutput,Nameable,EntityLike
- Mappings:
Namespace Name official cmqintermediary net/minecraft/class_9508named net/minecraft/class_9508
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.Entity
Entity.class_9494, Entity.MoveEffect, Entity.PositionUpdater, Entity.RemovalReason -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final TrackedData<Boolean> static final TrackedData<Float> private static final floatprivate static final doubleFields inherited from class net.minecraft.entity.projectile.ProjectileEntity
deflectedFields 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_44870, field_44871, field_44872, field_49073, field_49791, field_50386, field_50387, field_50388, field_50389, field_50390, field_50391, field_50392, field_50393, 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, wasOnFireFields inherited from interface net.minecraft.server.command.CommandOutput
DUMMYFields inherited from interface net.minecraft.scoreboard.ScoreHolder
WILDCARD, WILDCARD_NAME -
Constructor Summary
ConstructorsConstructorDescriptionclass_9508(EntityType<? extends class_9508> entityType, World world) class_9508(World world, PlayerEntity playerEntity) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanReturns whether the entity can use nether portals and end portals.Returns a packet to notify the clients of the entity's spawning.protected Entity.MoveEffectReturns the possible effect(s) of an entity moving.protected voidinitDataTracker(DataTracker.Builder builder) Initializes data tracker.private voidmethod_58937(float float2) private booleanmethod_58938(PlayerEntity playerEntity) private voidmethod_58939(@Nullable class_9508 class_9508) private voidmethod_58940(boolean bool) booleanfloatprotected voidonBlockHit(BlockHitResult blockHitResult) voidCalled on the client side when the entity is removed.voidonSpawnPacket(EntitySpawnS2CPacket packet) Called on the client when the entity receives a spawn packet.voidReads custom data fromnbt.voidremove(Entity.RemovalReason reason) Removes the entity.voidbooleanshouldRender(double distance) voidtick()Ticks this entity.voidupdateTrackedPositionAndAngles(double x, double y, double z, float yaw, float pitch, int interpolationSteps) voidWrites custom data tonbt.Methods inherited from class net.minecraft.entity.projectile.ProjectileEntity
canBreakBlocks, canModifyAt, copyFrom, getEffectCause, getOwner, isOwner, onCollision, onEntityHit, setVelocity, setVelocity, setVelocityClient, updateRotation, updateRotationMethods inherited from class net.minecraft.entity.Entity
addAirTravelEffects, addCommandTag, addFlapEffects, addPassenger, addVelocity, addVelocity, adjustMovementForCollisions, adjustMovementForPiston, adjustMovementForSneaking, animateDamage, applyDamageEffects, applyGravity, applyMirror, applyRotation, attemptTickInVoid, baseTick, bypassesLandingEffects, bypassesSteppingEffects, calculateBoundingBox, calculateDimensions, calculateNextStepSoundDistance, canAddPassenger, canAvoidTraps, canBeHitByProjectile, canBeSpectated, canExplosionDestroyBlock, canFreeze, canHit, canMoveVoluntarily, canSprintAsVehicle, canStartRiding, changeLookDirection, checkBlockCollision, checkDespawn, collidesWith, collidesWithStateAtPos, copyPositionAndRotation, couldAcceptPassenger, damage, detach, discard, dismountVehicle, distanceTo, doesNotCollide, doesRenderOnFire, dropItem, dropItem, dropStack, dropStack, emitGameEvent, emitGameEvent, entityDataRequiresOperator, equals, extinguish, extinguishWithSound, fall, getAir, getAttachments, getBlockPos, getBlockStateAtPos, getBlockX, getBlockY, getBlockZ, getBodyY, getBodyYaw, getBoundingBox, getBrightnessAtEyes, getBurningDuration, getCameraPosVec, getChunkPos, getClientCameraPosVec, getCommandSource, getCommandTags, getControllingPassenger, getControllingVehicle, getCustomName, getDamageSources, getDataTracker, getDefaultName, getDefaultPortalCooldown, getDimensions, getDisplayName, getEffectiveExplosionResistance, getEntityWorld, getEyeHeight, getEyePos, getEyeY, getFacing, getFinalGravity, getFireTicks, getFirstPassenger, getFlag, getFluidHeight, getFreezingScale, getFrozenTicks, getGravity, getHandPosOffset, getHeadYaw, getHeight, getHighSpeedSplashSound, getHorizontalFacing, getHoverEvent, getId, getJumpVelocityMultiplier, getLandingBlockState, getLandingPos, getLeashOffset, getLeashOffset, getLeashPos, getLerpedPos, getLerpTargetPitch, getLerpTargetX, getLerpTargetY, getLerpTargetYaw, getLerpTargetZ, getMaxAir, getMaxNetherPortalTime, getMinFreezeDamageTicks, getMovementDirection, getName, getNameForScoreboard, getOppositeRotationVector, getOppositeRotationVector, getParticleX, getParticleZ, getPassengerAttachmentPos, getPassengerAttachmentPos, getPassengerDismountOffset, getPassengerList, getPassengerRidingPos, getPassengersDeep, getPermissionLevel, getPickBlockStack, getPistonBehavior, getPitch, getPitch, getPlayerPassengers, getPortalCooldown, getPortalRect, getPos, getPose, getPosWithYOffset, getProjectileDeflector, getRandomBodyY, getRegistryManager, getRemovalReason, getRenderDistanceMultiplier, 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, getUuid, getUuidAsString, getVehicle, getVehicleAttachmentPos, 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, isAttackable, 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, method_58830, method_58831, method_58832, method_58833, method_58837, method_58842, method_58843, move, moveToWorld, occludeVibrationSignals, offsetX, offsetZ, onBlockCollision, onBubbleColumnCollision, onBubbleColumnSurfaceCollision, onDamaged, onDataTrackerUpdate, onExplodedBy, onKilledOther, onLanding, onPassengerLookAround, onPlayerCollision, 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, removeAllPassengers, removeCommandTag, removeFromDimension, removePassenger, 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, setOnFireForTicks, setOnFireFromLava, setOnGround, setOnGround, setPitch, setPortalCooldown, setPos, setPose, setPosition, setPosition, setRemoved, setRenderDistanceMultiplier, setRotation, setSilent, setSneaking, setSprinting, 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, updateVelocity, updateWaterState, writeNbtMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.server.command.CommandOutput
cannotBeSilencedMethods inherited from interface net.minecraft.scoreboard.ScoreHolder
getStyledDisplayName
-
Field Details
-
field_50485
- Mappings:
Namespace Name Mixin selector official bLcmq;b:Lajy;intermediary field_50485Lnet/minecraft/class_9508;field_50485:Lnet/minecraft/class_2940;named field_50485Lnet/minecraft/class_9508;field_50485:Lnet/minecraft/entity/data/TrackedData;
-
field_50486
- Mappings:
Namespace Name Mixin selector official cLcmq;c:Lajy;intermediary field_50486Lnet/minecraft/class_9508;field_50486:Lnet/minecraft/class_2940;named field_50486Lnet/minecraft/class_9508;field_50486:Lnet/minecraft/entity/data/TrackedData;
-
field_50487
private static final float field_50487- See Also:
- Mappings:
Namespace Name Mixin selector official dLcmq;d:Fintermediary field_50487Lnet/minecraft/class_9508;field_50487:Fnamed field_50487Lnet/minecraft/class_9508;field_50487:F
-
field_50488
private static final double field_50488- See Also:
- Mappings:
Namespace Name Mixin selector official eLcmq;e:Dintermediary field_50488Lnet/minecraft/class_9508;field_50488:Dnamed field_50488Lnet/minecraft/class_9508;field_50488:D
-
-
Constructor Details
-
class_9508
-
class_9508
-
-
Method Details
-
initDataTracker
Initializes data tracker.- Specified by:
initDataTrackerin classEntity- Mappings:
Namespace Name Mixin selector official aLbrv;a(Lakc$a;)Vintermediary method_5693Lnet/minecraft/class_1297;method_5693(Lnet/minecraft/class_2945$class_9222;)Vnamed initDataTrackerLnet/minecraft/entity/Entity;initDataTracker(Lnet/minecraft/entity/data/DataTracker$Builder;)V
-
shouldRender
public boolean shouldRender(double distance) - Overrides:
shouldRenderin classEntity- Mappings:
Namespace Name Mixin selector official aLbrv;a(D)Zintermediary method_5640Lnet/minecraft/class_1297;method_5640(D)Znamed shouldRenderLnet/minecraft/entity/Entity;shouldRender(D)Z
-
updateTrackedPositionAndAngles
public void updateTrackedPositionAndAngles(double x, double y, double z, float yaw, float pitch, int interpolationSteps) - Overrides:
updateTrackedPositionAndAnglesin classEntity- Mappings:
Namespace Name Mixin selector official aLbrv;a(DDDFFI)Vintermediary method_5759Lnet/minecraft/class_1297;method_5759(DDDFFI)Vnamed updateTrackedPositionAndAnglesLnet/minecraft/entity/Entity;updateTrackedPositionAndAngles(DDDFFI)V
-
tick
public void tick()Ticks this entity.- Overrides:
tickin classProjectileEntity- See Also:
- Mappings:
Namespace Name Mixin selector official lLbrv;l()Vintermediary method_5773Lnet/minecraft/class_1297;method_5773()Vnamed tickLnet/minecraft/entity/Entity;tick()V
-
method_58938
- Mappings:
Namespace Name Mixin selector official aLcmq;a(Lcly;)Zintermediary method_58938Lnet/minecraft/class_9508;method_58938(Lnet/minecraft/class_1657;)Znamed method_58938Lnet/minecraft/class_9508;method_58938(Lnet/minecraft/entity/player/PlayerEntity;)Z
-
canHit
- Overrides:
canHitin classProjectileEntity- Mappings:
Namespace Name Mixin selector official bLcms;b(Lbrv;)Zintermediary method_26958Lnet/minecraft/class_1676;method_26958(Lnet/minecraft/class_1297;)Znamed canHitLnet/minecraft/entity/projectile/ProjectileEntity;canHit(Lnet/minecraft/entity/Entity;)Z
-
onBlockHit
- Overrides:
onBlockHitin classProjectileEntity- Mappings:
Namespace Name Mixin selector official aLcms;a(Lewq;)Vintermediary method_24920Lnet/minecraft/class_1676;method_24920(Lnet/minecraft/class_3965;)Vnamed onBlockHitLnet/minecraft/entity/projectile/ProjectileEntity;onBlockHit(Lnet/minecraft/util/hit/BlockHitResult;)V
-
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.
- Overrides:
writeCustomDataToNbtin classProjectileEntity- See Also:
- Mappings:
Namespace Name Mixin selector official bLbrv;b(Luk;)Vintermediary method_5652Lnet/minecraft/class_1297;method_5652(Lnet/minecraft/class_2487;)Vnamed writeCustomDataToNbtLnet/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.
nbtmight 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.- Overrides:
readCustomDataFromNbtin classProjectileEntity- See Also:
- Mappings:
Namespace Name Mixin selector official aLbrv;a(Luk;)Vintermediary method_5749Lnet/minecraft/class_1297;method_5749(Lnet/minecraft/class_2487;)Vnamed readCustomDataFromNbtLnet/minecraft/entity/Entity;readCustomDataFromNbt(Lnet/minecraft/nbt/NbtCompound;)V
-
method_58940
private void method_58940(boolean bool) - Mappings:
Namespace Name Mixin selector official aLcmq;a(Z)Vintermediary method_58940Lnet/minecraft/class_9508;method_58940(Z)Vnamed method_58940Lnet/minecraft/class_9508;method_58940(Z)V
-
method_58937
private void method_58937(float float2) - Mappings:
Namespace Name Mixin selector official aLcmq;a(F)Vintermediary method_58937Lnet/minecraft/class_9508;method_58937(F)Vnamed method_58937Lnet/minecraft/class_9508;method_58937(F)V
-
method_58941
public boolean method_58941()- Mappings:
Namespace Name Mixin selector official pLcmq;p()Zintermediary method_58941Lnet/minecraft/class_9508;method_58941()Znamed method_58941Lnet/minecraft/class_9508;method_58941()Z
-
method_58942
public float method_58942()- Mappings:
Namespace Name Mixin selector official rLcmq;r()Fintermediary method_58942Lnet/minecraft/class_9508;method_58942()Fnamed method_58942Lnet/minecraft/class_9508;method_58942()F
-
getMoveEffect
Returns the possible effect(s) of an entity moving.- Overrides:
getMoveEffectin classEntity- Mappings:
Namespace Name Mixin selector official bfLbrv;bf()Lbrv$c;intermediary method_33570Lnet/minecraft/class_1297;method_33570()Lnet/minecraft/class_1297$class_5799;named getMoveEffectLnet/minecraft/entity/Entity;getMoveEffect()Lnet/minecraft/entity/Entity$MoveEffect;
-
remove
Removes the entity.- Overrides:
removein classEntity- See Also:
- Mappings:
Namespace Name Mixin selector official aLbrv;a(Lbrv$d;)Vintermediary method_5650Lnet/minecraft/class_1297;method_5650(Lnet/minecraft/class_1297$class_5529;)Vnamed removeLnet/minecraft/entity/Entity;remove(Lnet/minecraft/entity/Entity$RemovalReason;)V
-
onRemoved
public void onRemoved()Called on the client side when the entity is removed. -
setOwner
- Overrides:
setOwnerin classProjectileEntity- Mappings:
Namespace Name Mixin selector official cLcms;c(Lbrv;)Vintermediary method_7432Lnet/minecraft/class_1676;method_7432(Lnet/minecraft/class_1297;)Vnamed setOwnerLnet/minecraft/entity/projectile/ProjectileEntity;setOwner(Lnet/minecraft/entity/Entity;)V
-
method_58939
- Mappings:
Namespace Name Mixin selector official aLcmq;a(Lcmq;)Vintermediary method_58939Lnet/minecraft/class_9508;method_58939(Lnet/minecraft/class_9508;)Vnamed method_58939Lnet/minecraft/class_9508;method_58939(Lnet/minecraft/class_9508;)V
-
method_58943
- Mappings:
Namespace Name Mixin selector official uLcmq;u()Lcly;intermediary method_58943Lnet/minecraft/class_9508;method_58943()Lnet/minecraft/class_1657;named method_58943Lnet/minecraft/class_9508;method_58943()Lnet/minecraft/entity/player/PlayerEntity;
-
canUsePortals
public boolean canUsePortals()Returns whether the entity can use nether portals and end portals.EnderDragonEntity,WitherEntity, andFishingBobberEntitycannot use portals.- Overrides:
canUsePortalsin classEntity- Returns:
- whether the entity can use nether portals and end portals
- Mappings:
Namespace Name Mixin selector official cBLbrv;cB()Zintermediary method_5822Lnet/minecraft/class_1297;method_5822()Znamed canUsePortalsLnet/minecraft/entity/Entity;canUsePortals()Z
-
createSpawnPacket
Returns a packet to notify the clients of the entity's spawning.- Overrides:
createSpawnPacketin classProjectileEntity- Returns:
- a packet to notify the clients of the entity's spawning
- Mappings:
Namespace Name Mixin selector official dqLbrv;dq()Lzl;intermediary method_18002Lnet/minecraft/class_1297;method_18002()Lnet/minecraft/class_2596;named createSpawnPacketLnet/minecraft/entity/Entity;createSpawnPacket()Lnet/minecraft/network/packet/Packet;
-
onSpawnPacket
Called on the client when the entity receives a spawn packet.This sets the entity's position, angles, ID, and UUID. Subclasses can override this to initialize additional fields.
- Overrides:
onSpawnPacketin classProjectileEntity- Mappings:
Namespace Name Mixin selector official aLbrv;a(Labx;)Vintermediary method_31471Lnet/minecraft/class_1297;method_31471(Lnet/minecraft/class_2604;)Vnamed onSpawnPacketLnet/minecraft/entity/Entity;onSpawnPacket(Lnet/minecraft/network/packet/s2c/play/EntitySpawnS2CPacket;)V
-