Class class_8150
- All Implemented Interfaces:
class_8149
,class_8152
,CommandOutput
,Nameable
,EntityLike
- Mappings:
Namespace Name official bfr
intermediary net/minecraft/class_8150
named net/minecraft/class_8150
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class net.minecraft.entity.Entity
Entity.MoveEffect, Entity.PositionUpdater, Entity.RemovalReason
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Logger
private static final TrackedData<Float>
private static final TrackedData<Float>
private static final TrackedData<Boolean>
private static final String
private static final String
private static final String
private static final String
private static final String
private @Nullable class_8150.class_8151
private @Nullable class_8150.class_8151
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, stepHeight, 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Box
boolean
canHit()
Returns whether the entity can be hit with a projectile or be targeted by the player crosshair.getDimensions
(EntityPose pose) Returns the dimensions of the entity with the givenpose
.Returns the behavior of the piston for this entity.boolean
handleAttack
(Entity attacker) Handles a player attacking the entity.protected void
Initializes data tracker.interact
(PlayerEntity player, Hand hand) Called when a player interacts with this entity.boolean
private void
method_49109
(float float2) private void
method_49112
(boolean bool) private void
method_49113
(float float2) private float
private float
private boolean
private EntityDimensions
void
onTrackedDataSet
(TrackedData<?> data) Called on the client when the tracked data is set.protected void
Reads custom data fromnbt
.void
tick()
Ticks this entity.protected 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, calculateBoundsForPose, calculateDimensions, calculateNextStepSoundDistance, canAddPassenger, canAvoidTraps, canBeRiddenInWater, canBeSpectated, canExplosionDestroyBlock, canFreeze, canModifyAt, canSprintAsVehicle, canStartRiding, canUsePortals, changeLookDirection, checkBlockCollision, checkDespawn, 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, getBrightnessAtEyes, getBurningDuration, getCameraPosVec, getChunkPos, getClientCameraPosVec, getCommandSource, getCommandTags, getCustomName, getDamageSources, getDataTracker, getDefaultName, getDefaultPortalCooldown, 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, getPitch, getPitch, getPortalRect, getPos, getPose, getPrimaryPassenger, getRandomBodyY, getRemovalReason, getRenderDistanceMultiplier, getRootVehicle, getRotationClient, getRotationVec, getRotationVecClient, getRotationVector, getRotationVector, getSafeFallDistance, getSavedEntityId, getScoreboardTeam, getServer, getSoundCategory, getSplashSound, getStackReference, getStandingEyeHeight, getSteppingBlockState, getSteppingPos, getSwimHeight, getSwimSound, getSyncedPos, getTargetingMargin, getTeamColorValue, getTeleportTarget, getTrackedPosition, getType, getUuid, getUuidAsString, getVehicle, getVelocity, getVelocityAffectingPos, getVelocityMultiplier, getVisibilityBoundingBox, getWidth, getWorld, getX, getY, getYaw, getYaw, getZ, handleFallDamage, handleStatus, hasCollidedSoftly, hasCustomName, hashCode, hasNoGravity, hasPassenger, hasPassenger, hasPassengerDeep, hasPassengers, hasPermissionLevel, hasPlayerRider, hasPortalCooldown, hasPrimaryPassenger, hasVehicle, interactAt, isAlive, isAttackable, 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, 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, setSwimming, setUuid, setVelocity, setVelocity, setVelocityClient, setYaw, shouldBroadcastConsoleToOps, shouldEscapePowderSnow, shouldReceiveFeedback, shouldRender, 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
-
field_42624
- Mappings:
Namespace Name Mixin selector official b
Lbfr;b:Lorg/slf4j/Logger;
intermediary field_42624
Lnet/minecraft/class_8150;field_42624:Lorg/slf4j/Logger;
named field_42624
Lnet/minecraft/class_8150;field_42624:Lorg/slf4j/Logger;
-
field_42625
- Mappings:
Namespace Name Mixin selector official c
Lbfr;c:Laci;
intermediary field_42625
Lnet/minecraft/class_8150;field_42625:Lnet/minecraft/class_2940;
named field_42625
Lnet/minecraft/class_8150;field_42625:Lnet/minecraft/entity/data/TrackedData;
-
field_42626
- Mappings:
Namespace Name Mixin selector official d
Lbfr;d:Laci;
intermediary field_42626
Lnet/minecraft/class_8150;field_42626:Lnet/minecraft/class_2940;
named field_42626
Lnet/minecraft/class_8150;field_42626:Lnet/minecraft/entity/data/TrackedData;
-
field_42627
- Mappings:
Namespace Name Mixin selector official e
Lbfr;e:Laci;
intermediary field_42627
Lnet/minecraft/class_8150;field_42627:Lnet/minecraft/class_2940;
named field_42627
Lnet/minecraft/class_8150;field_42627:Lnet/minecraft/entity/data/TrackedData;
-
field_42628
- See Also:
- Mappings:
Namespace Name Mixin selector official f
Lbfr;f:Ljava/lang/String;
intermediary field_42628
Lnet/minecraft/class_8150;field_42628:Ljava/lang/String;
named field_42628
Lnet/minecraft/class_8150;field_42628:Ljava/lang/String;
-
field_42629
- See Also:
- Mappings:
Namespace Name Mixin selector official g
Lbfr;g:Ljava/lang/String;
intermediary field_42629
Lnet/minecraft/class_8150;field_42629:Ljava/lang/String;
named field_42629
Lnet/minecraft/class_8150;field_42629:Ljava/lang/String;
-
field_42630
- See Also:
- Mappings:
Namespace Name Mixin selector official h
Lbfr;h:Ljava/lang/String;
intermediary field_42630
Lnet/minecraft/class_8150;field_42630:Ljava/lang/String;
named field_42630
Lnet/minecraft/class_8150;field_42630:Ljava/lang/String;
-
field_42631
- See Also:
- Mappings:
Namespace Name Mixin selector official i
Lbfr;i:Ljava/lang/String;
intermediary field_42631
Lnet/minecraft/class_8150;field_42631:Ljava/lang/String;
named field_42631
Lnet/minecraft/class_8150;field_42631:Ljava/lang/String;
-
field_42632
- See Also:
- Mappings:
Namespace Name Mixin selector official j
Lbfr;j:Ljava/lang/String;
intermediary field_42632
Lnet/minecraft/class_8150;field_42632:Ljava/lang/String;
named field_42632
Lnet/minecraft/class_8150;field_42632:Ljava/lang/String;
-
field_42633
- Mappings:
Namespace Name Mixin selector official k
Lbfr;k:Lbfr$a;
intermediary field_42633
Lnet/minecraft/class_8150;field_42633:Lnet/minecraft/class_8150$class_8151;
named field_42633
Lnet/minecraft/class_8150;field_42633:Lnet/minecraft/class_8150$class_8151;
-
field_42634
- Mappings:
Namespace Name Mixin selector official l
Lbfr;l:Lbfr$a;
intermediary field_42634
Lnet/minecraft/class_8150;field_42634:Lnet/minecraft/class_8150$class_8151;
named field_42634
Lnet/minecraft/class_8150;field_42634:Lnet/minecraft/class_8150$class_8151;
-
-
Constructor Details
-
class_8150
- Mappings:
Namespace Name Mixin selector official <init>
Lbfg;<init>(Lbfk;Lcmh;)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
-
-
Method Details
-
initDataTracker
protected void initDataTracker()Initializes data tracker.- Specified by:
initDataTracker
in classEntity
- Mappings:
Namespace Name Mixin selector official a_
Lbfg;a_()V
intermediary method_5693
Lnet/minecraft/class_1297;method_5693()V
named initDataTracker
Lnet/minecraft/entity/Entity;initDataTracker()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
Lbfg;a(Lrc;)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
-
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
Lbfg;b(Lrc;)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
-
onTrackedDataSet
Called on the client when the tracked data is set.This can be overridden to refresh other fields when the tracked data is set or changed.
- Overrides:
onTrackedDataSet
in classEntity
- Mappings:
Namespace Name Mixin selector official a
Lbfg;a(Laci;)V
intermediary method_5674
Lnet/minecraft/class_1297;method_5674(Lnet/minecraft/class_2940;)V
named onTrackedDataSet
Lnet/minecraft/entity/Entity;onTrackedDataSet(Lnet/minecraft/entity/data/TrackedData;)V
-
method_49108
public boolean method_49108()- Overrides:
method_49108
in classEntity
- Mappings:
Namespace Name Mixin selector official bm
Lbfg;bm()Z
intermediary method_49108
Lnet/minecraft/class_1297;method_49108()Z
named method_49108
Lnet/minecraft/entity/Entity;method_49108()Z
-
canHit
public boolean canHit()Returns whether the entity can be hit with a projectile or be targeted by the player crosshair.- Overrides:
canHit
in classEntity
- Returns:
- whether the entity can be hit with a projectile or be targeted by the player crosshair
- Mappings:
Namespace Name Mixin selector official bn
Lbfg;bn()Z
intermediary method_5863
Lnet/minecraft/class_1297;method_5863()Z
named canHit
Lnet/minecraft/entity/Entity;canHit()Z
-
getPistonBehavior
Returns the behavior of the piston for this entity.This is
PistonBehavior.NORMAL
by default.AreaEffectCloudEntity
,MarkerEntity
, and markerArmorStandEntity
returnPistonBehavior.IGNORE
, causing the piston to not affect the entity's position. Other piston behaviors are inapplicable to entities, and treated likePistonBehavior.NORMAL
.- Overrides:
getPistonBehavior
in classEntity
- Returns:
- the behavior of the piston for this entity
- Mappings:
Namespace Name Mixin selector official C_
Lbfg;C_()Ldwm;
intermediary method_5657
Lnet/minecraft/class_1297;method_5657()Lnet/minecraft/class_3619;
named getPistonBehavior
Lnet/minecraft/entity/Entity;getPistonBehavior()Lnet/minecraft/block/piston/PistonBehavior;
-
handleAttack
Handles a player attacking the entity. This is called beforeEntity.damage(net.minecraft.entity.damage.DamageSource, float)
and can be used to restrict players from attacking the entity by returningtrue
.- Overrides:
handleAttack
in classEntity
- Returns:
- whether to stop handling the attack
- See Also:
- Mappings:
Namespace Name Mixin selector official r
Lbfg;r(Lbfg;)Z
intermediary method_5698
Lnet/minecraft/class_1297;method_5698(Lnet/minecraft/class_1297;)Z
named handleAttack
Lnet/minecraft/entity/Entity;handleAttack(Lnet/minecraft/entity/Entity;)Z
-
interact
Called when a player interacts with this entity.- Overrides:
interact
in classEntity
- Parameters:
player
- the playerhand
- the hand the player used to interact with this entity- Mappings:
Namespace Name Mixin selector official a
Lbfg;a(Lbyl;Lbdw;)Lbdx;
intermediary method_5688
Lnet/minecraft/class_1297;method_5688(Lnet/minecraft/class_1657;Lnet/minecraft/class_1268;)Lnet/minecraft/class_1269;
named interact
Lnet/minecraft/entity/Entity;interact(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/util/Hand;)Lnet/minecraft/util/ActionResult;
-
tick
public void tick()Ticks this entity. -
method_49107
- Specified by:
method_49107
in interfaceclass_8149
- Mappings:
Namespace Name Mixin selector official L_
Lbfe;L_()Lbfw;
intermediary method_49107
Lnet/minecraft/class_8149;method_49107()Lnet/minecraft/class_1309;
named method_49107
Lnet/minecraft/class_8149;method_49107()Lnet/minecraft/entity/LivingEntity;
-
getTarget
- Specified by:
getTarget
in interfaceclass_8152
- Mappings:
Namespace Name Mixin selector official P_
Lbgt;P_()Lbfw;
intermediary method_5968
Lnet/minecraft/class_8152;method_5968()Lnet/minecraft/class_1309;
named getTarget
Lnet/minecraft/class_8152;getTarget()Lnet/minecraft/entity/LivingEntity;
-
method_49109
private void method_49109(float float2) - Mappings:
Namespace Name Mixin selector official a
Lbfr;a(F)V
intermediary method_49109
Lnet/minecraft/class_8150;method_49109(F)V
named method_49109
Lnet/minecraft/class_8150;method_49109(F)V
-
method_49116
private float method_49116()- Mappings:
Namespace Name Mixin selector official j
Lbfr;j()F
intermediary method_49116
Lnet/minecraft/class_8150;method_49116()F
named method_49116
Lnet/minecraft/class_8150;method_49116()F
-
method_49113
private void method_49113(float float2) - Mappings:
Namespace Name Mixin selector official b
Lbfr;b(F)V
intermediary method_49113
Lnet/minecraft/class_8150;method_49113(F)V
named method_49113
Lnet/minecraft/class_8150;method_49113(F)V
-
method_49117
private float method_49117()- Mappings:
Namespace Name Mixin selector official k
Lbfr;k()F
intermediary method_49117
Lnet/minecraft/class_8150;method_49117()F
named method_49117
Lnet/minecraft/class_8150;method_49117()F
-
method_49112
private void method_49112(boolean bool) - Mappings:
Namespace Name Mixin selector official a
Lbfr;a(Z)V
intermediary method_49112
Lnet/minecraft/class_8150;method_49112(Z)V
named method_49112
Lnet/minecraft/class_8150;method_49112(Z)V
-
method_49118
private boolean method_49118()- Mappings:
Namespace Name Mixin selector official o
Lbfr;o()Z
intermediary method_49118
Lnet/minecraft/class_8150;method_49118()Z
named method_49118
Lnet/minecraft/class_8150;method_49118()Z
-
method_49119
- Mappings:
Namespace Name Mixin selector official p
Lbfr;p()Lbfh;
intermediary method_49119
Lnet/minecraft/class_8150;method_49119()Lnet/minecraft/class_4048;
named method_49119
Lnet/minecraft/class_8150;method_49119()Lnet/minecraft/entity/EntityDimensions;
-
getDimensions
Returns the dimensions of the entity with the givenpose
.- Overrides:
getDimensions
in classEntity
- Returns:
- the dimensions of the entity with the given
pose
- See Also:
- Mappings:
Namespace Name Mixin selector official a
Lbfg;a(Lbgi;)Lbfh;
intermediary method_18377
Lnet/minecraft/class_1297;method_18377(Lnet/minecraft/class_4050;)Lnet/minecraft/class_4048;
named getDimensions
Lnet/minecraft/entity/Entity;getDimensions(Lnet/minecraft/entity/EntityPose;)Lnet/minecraft/entity/EntityDimensions;
-
calculateBoundingBox
- Overrides:
calculateBoundingBox
in classEntity
- Mappings:
Namespace Name Mixin selector official an
Lbfg;an()Lecw;
intermediary method_33332
Lnet/minecraft/class_1297;method_33332()Lnet/minecraft/class_238;
named calculateBoundingBox
Lnet/minecraft/entity/Entity;calculateBoundingBox()Lnet/minecraft/util/math/Box;
-