Class AbstractMinecartEntity
- All Implemented Interfaces:
DataTracked
,ScoreHolder
,CommandOutput
,Nameable
,EntityLike
- Direct Known Subclasses:
CommandBlockMinecartEntity
,FurnaceMinecartEntity
,MinecartEntity
,SpawnerMinecartEntity
,StorageMinecartEntity
,TntMinecartEntity
- Mappings:
Namespace Name named net/minecraft/entity/vehicle/AbstractMinecartEntity
intermediary net/minecraft/class_1688
official cor
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.Entity
Entity.MoveEffect, Entity.PositionUpdater, Entity.RemovalReason
-
Field Summary
Modifier and TypeFieldDescriptionprivate int
private double
private Vec3d
private double
private double
private double
private double
private static final TrackedData
<Integer> private static final TrackedData
<Integer> private static final TrackedData
<Boolean> private static final ImmutableMap
<EntityPose, ImmutableList<Integer>> private boolean
protected static final float
private static final Vec3d
private boolean
Fields inherited from class net.minecraft.entity.vehicle.VehicleEntity
DAMAGE_WOBBLE_SIDE, DAMAGE_WOBBLE_STRENGTH, DAMAGE_WOBBLE_TICKS
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_44870, field_44871, field_44872, field_49073, field_49791, field_51994, firstUpdate, FLAGS, fluidHeight, FREEZING_DAMAGE_INTERVAL, GLOWING_FLAG_INDEX, groundCollision, horizontalCollision, horizontalSpeed, ID_KEY, ignoreCameraFrustum, inPowderSnow, intersectionChecked, lastRenderX, lastRenderY, lastRenderZ, MAX_COMMAND_TAGS, MAX_RIDING_COOLDOWN, MIN_RISING_BUBBLE_COLUMN_SPEED, movementMultiplier, 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
Fields inherited from interface net.minecraft.scoreboard.ScoreHolder
WILDCARD, WILDCARD_NAME
-
Constructor Summary
ModifierConstructorDescriptionprotected
AbstractMinecartEntity
(EntityType<?> type, World world) protected
AbstractMinecartEntity
(EntityType<?> type, World world, double x, double y, double z) -
Method Summary
Modifier and TypeMethodDescriptionvoid
animateDamage
(float yaw) Called on the client to animate the entity's damage (the wobble).protected void
boolean
canHit()
Returns whether the entity can be hit with a projectile or be targeted by the player crosshair.boolean
collidesWith
(Entity other) Returns whether this entity cannot occupy the same space withother
.static AbstractMinecartEntity
create
(ServerWorld world, double x, double y, double z, AbstractMinecartEntity.Type type, ItemStack stack, @Nullable PlayerEntity player) int
int
protected double
float
double
double
float
double
protected double
abstract AbstractMinecartEntity.Type
protected Entity.MoveEffect
Returns the possible effect(s) of an entity moving.protected Vec3d
getPassengerAttachmentPos
(Entity passenger, EntityDimensions dimensions, float scaleFactor) Returns the stack for creative "pick block" functionality, ornull
if there is none.protected float
boolean
protected void
initDataTracker
(DataTracker.Builder builder) Initializes data tracker.boolean
isOnRail()
boolean
Returns whether the entity can be pushed by other entities.protected void
protected void
moveOnRail
(BlockPos pos, BlockState state) void
onActivatorRail
(int x, int y, int z, boolean powered) positionInPortal
(Direction.Axis portalAxis, BlockLocating.Rectangle portalRect) Returns the entity's position in the portal after teleportation.void
pushAwayFrom
(Entity entity) protected void
Reads custom data fromnbt
.void
setCustomBlock
(BlockState state) void
setCustomBlockOffset
(int offset) void
setCustomBlockPresent
(boolean present) void
setVelocityClient
(double x, double y, double z) snapPositionToRail
(double x, double y, double z) snapPositionToRailWithOffset
(double x, double y, double z, double offset) This method is used to determine the minecart's render orientation, by computing a position along the rail slightly before and slightly after the minecart's actual position.void
tick()
Ticks this entity.updatePassengerForDismount
(LivingEntity passenger) Returns the position of the dismountedpassenger
.void
updateTrackedPositionAndAngles
(double x, double y, double z, float yaw, float pitch, int interpolationSteps) private boolean
willHitBlockAt
(BlockPos pos) protected void
Writes custom data tonbt
.Methods inherited from class net.minecraft.entity.vehicle.VehicleEntity
asItem, damage, getDamageWobbleSide, getDamageWobbleStrength, getDamageWobbleTicks, killAndDropItem, killAndDropSelf, setDamageWobbleSide, setDamageWobbleStrength, setDamageWobbleTicks, shouldAlwaysKill
Methods inherited from class net.minecraft.entity.Entity
addAirTravelEffects, addCommandTag, addFlapEffects, addPassenger, addVelocity, addVelocity, addVelocityInternal, adjustMovementForCollisions, adjustMovementForPiston, adjustMovementForSneaking, applyGravity, applyMirror, applyRotation, attemptTickInVoid, baseTick, bypassesLandingEffects, bypassesSteppingEffects, calculateBoundingBox, calculateDimensions, calculateNextStepSoundDistance, canAddPassenger, canAvoidTraps, canBeHitByProjectile, canBeSpectated, canExplosionDestroyBlock, canFreeze, canModifyAt, canMoveVoluntarily, canSprintAsVehicle, canStartRiding, canUsePortals, changeLookDirection, checkBlockCollision, checkDespawn, collidesWithStateAtPos, copyFrom, copyPositionAndRotation, couldAcceptPassenger, createSpawnPacket, 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, getHandPosOffset, getHeadYaw, getHeight, getHighSpeedSplashSound, getHorizontalFacing, getHoverEvent, getId, getJumpVelocityMultiplier, getLandingBlockState, getLandingPos, getLeashOffset, getLeashOffset, getLeashPos, getLerpedPos, getMaxAir, getMinFreezeDamageTicks, getMovement, getName, getNameForScoreboard, getOppositeRotationVector, getOppositeRotationVector, getParticleX, getParticleZ, getPassengerAttachmentPos, getPassengerDismountOffset, getPassengerList, getPassengerRidingPos, getPassengersDeep, getPermissionLevel, getPistonBehavior, getPitch, getPitch, getPlayerPassengers, getPortalCooldown, getPos, getPose, getPosWithYOffset, getProjectileDeflection, getRandom, 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, getTrackedPosition, getType, getUuid, getUuidAsString, getVehicle, getVehicleAttachmentPos, getVelocity, getVelocityAffectingPos, 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, isPartOf, isPlayer, isPushedByFluids, isRegionUnloaded, isRemoved, isSilent, isSneaking, isSneaky, isSpectator, isSprinting, isSubmergedIn, isSubmergedInWater, isSupportedBy, isSwimming, isTeammate, isTeamPlayer, isTouchingWater, isTouchingWaterOrRain, isWet, kill, lerpPosAndRotation, limitFallDistance, lookAt, method_60697, method_60698, move, moveToWorld, occludeVibrationSignals, offsetX, offsetZ, onBlockCollision, onBubbleColumnCollision, onBubbleColumnSurfaceCollision, onDamaged, onDataTrackerUpdate, onExplodedBy, onKilledOther, onLanding, onPassengerLookAround, onPlayerCollision, onRemoved, onSpawnPacket, onStartedTrackingBy, onStoppedTrackingBy, onStruckByLightning, onSwimmingStart, onTrackedDataSet, playCombinationStepSounds, playExtinguishSound, playSecondaryStepSound, playSound, playSoundIfNotSilent, playStepSound, playSwimSound, playSwimSound, populateCrashReport, pushOutOfBlocks, raycast, readNbt, recalculateDimensions, refreshPosition, refreshPositionAfterTeleport, refreshPositionAfterTeleport, refreshPositionAndAngles, refreshPositionAndAngles, reinitDimensions, remove, removeAllPassengers, removeCommandTag, removeFromDimension, removePassenger, requestTeleport, requestTeleportAndDismount, requestTeleportOffset, resetPortalCooldown, resetPosition, saveNbt, saveSelfNbt, scheduleVelocityUpdate, sendMessage, setAir, setAngles, setBodyYaw, setBoundingBox, setChangeListener, setCustomName, setCustomNameVisible, setFireTicks, setFlag, setFrozenTicks, setGlowing, setHeadYaw, setId, 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, shouldRender, shouldRenderName, shouldSave, shouldSetPositionOnLoad, shouldSpawnSprintingParticles, shouldTrackOutput, slowMovement, spawnSprintingParticles, squaredDistanceTo, squaredDistanceTo, squaredDistanceTo, startRiding, startRiding, stopRiding, streamPassengersAndSelf, streamSelfAndPassengers, teleport, tickInVoid, tickPortalCooldown, tickRiding, toNbtList, toNbtList, toString, tryCheckBlockCollision, unsetRemoved, updateEventHandler, updateKilledAdvancementCriterion, updateMovementInFluid, updatePassengerPosition, updatePassengerPosition, updatePosition, updatePositionAndAngles, updateSupportingBlockPos, updateSwimming, updateTrackedHeadRotation, updateTrackedPosition, 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
Methods inherited from interface net.minecraft.scoreboard.ScoreHolder
getStyledDisplayName
-
Field Details
-
VILLAGER_PASSENGER_ATTACHMENT_POS
- Mappings:
Namespace Name Mixin selector named VILLAGER_PASSENGER_ATTACHMENT_POS
Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;VILLAGER_PASSENGER_ATTACHMENT_POS:Lnet/minecraft/util/math/Vec3d;
intermediary field_47822
Lnet/minecraft/class_1688;field_47822:Lnet/minecraft/class_243;
official c
Lcor;c:Leww;
-
CUSTOM_BLOCK_ID
- Mappings:
Namespace Name Mixin selector named CUSTOM_BLOCK_ID
Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;CUSTOM_BLOCK_ID:Lnet/minecraft/entity/data/TrackedData;
intermediary field_7671
Lnet/minecraft/class_1688;field_7671:Lnet/minecraft/class_2940;
official d
Lcor;d:Lajv;
-
CUSTOM_BLOCK_OFFSET
- Mappings:
Namespace Name Mixin selector named CUSTOM_BLOCK_OFFSET
Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;CUSTOM_BLOCK_OFFSET:Lnet/minecraft/entity/data/TrackedData;
intermediary field_7661
Lnet/minecraft/class_1688;field_7661:Lnet/minecraft/class_2940;
official e
Lcor;e:Lajv;
-
CUSTOM_BLOCK_PRESENT
- Mappings:
Namespace Name Mixin selector named CUSTOM_BLOCK_PRESENT
Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;CUSTOM_BLOCK_PRESENT:Lnet/minecraft/entity/data/TrackedData;
intermediary field_7670
Lnet/minecraft/class_1688;field_7670:Lnet/minecraft/class_2940;
official i
Lcor;i:Lajv;
-
DISMOUNT_FREE_Y_SPACES_NEEDED
- Mappings:
Namespace Name Mixin selector named DISMOUNT_FREE_Y_SPACES_NEEDED
Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;DISMOUNT_FREE_Y_SPACES_NEEDED:Lcom/google/common/collect/ImmutableMap;
intermediary field_24464
Lnet/minecraft/class_1688;field_24464:Lcom/google/common/collect/ImmutableMap;
official j
Lcor;j:Lcom/google/common/collect/ImmutableMap;
-
VELOCITY_SLOWDOWN_MULTIPLIER
protected static final float VELOCITY_SLOWDOWN_MULTIPLIER- See Also:
- Mappings:
Namespace Name Mixin selector named VELOCITY_SLOWDOWN_MULTIPLIER
Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;VELOCITY_SLOWDOWN_MULTIPLIER:F
intermediary field_30694
Lnet/minecraft/class_1688;field_30694:F
official b
Lcor;b:F
-
ADJACENT_RAIL_POSITIONS_BY_SHAPE
private static final Map<RailShape,com.mojang.datafixers.util.Pair<Vec3i, ADJACENT_RAIL_POSITIONS_BY_SHAPEVec3i>> - Mappings:
Namespace Name Mixin selector named ADJACENT_RAIL_POSITIONS_BY_SHAPE
Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;ADJACENT_RAIL_POSITIONS_BY_SHAPE:Ljava/util/Map;
intermediary field_7664
Lnet/minecraft/class_1688;field_7664:Ljava/util/Map;
official t
Lcor;t:Ljava/util/Map;
-
yawFlipped
private boolean yawFlipped- Mappings:
Namespace Name Mixin selector named yawFlipped
Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;yawFlipped:Z
intermediary field_7660
Lnet/minecraft/class_1688;field_7660:Z
official k
Lcor;k:Z
-
onRail
private boolean onRail- Mappings:
Namespace Name Mixin selector named onRail
Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;onRail:Z
intermediary field_44917
Lnet/minecraft/class_1688;field_44917:Z
official l
Lcor;l:Z
-
clientInterpolationSteps
private int clientInterpolationSteps- Mappings:
Namespace Name Mixin selector named clientInterpolationSteps
Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;clientInterpolationSteps:I
intermediary field_45135
Lnet/minecraft/class_1688;field_45135:I
official m
Lcor;m:I
-
clientX
private double clientX- Mappings:
Namespace Name Mixin selector named clientX
Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;clientX:D
intermediary field_45136
Lnet/minecraft/class_1688;field_45136:D
official n
Lcor;n:D
-
clientY
private double clientY- Mappings:
Namespace Name Mixin selector named clientY
Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;clientY:D
intermediary field_45137
Lnet/minecraft/class_1688;field_45137:D
official o
Lcor;o:D
-
clientZ
private double clientZ- Mappings:
Namespace Name Mixin selector named clientZ
Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;clientZ:D
intermediary field_45138
Lnet/minecraft/class_1688;field_45138:D
official p
Lcor;p:D
-
clientYaw
private double clientYaw- Mappings:
Namespace Name Mixin selector named clientYaw
Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;clientYaw:D
intermediary field_45139
Lnet/minecraft/class_1688;field_45139:D
official q
Lcor;q:D
-
clientPitch
private double clientPitch- Mappings:
Namespace Name Mixin selector named clientPitch
Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;clientPitch:D
intermediary field_45140
Lnet/minecraft/class_1688;field_45140:D
official r
Lcor;r:D
-
clientVelocity
- Mappings:
Namespace Name Mixin selector named clientVelocity
Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;clientVelocity:Lnet/minecraft/util/math/Vec3d;
intermediary field_45141
Lnet/minecraft/class_1688;field_45141:Lnet/minecraft/class_243;
official s
Lcor;s:Leww;
-
-
Constructor Details
-
AbstractMinecartEntity
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/entity/Entity;<init>(Lnet/minecraft/entity/EntityType;Lnet/minecraft/world/World;)V
intermediary <init>
Lnet/minecraft/class_1297;<init>(Lnet/minecraft/class_1299;Lnet/minecraft/class_1937;)V
official <init>
Lbsq;<init>(Lbsw;Ldcu;)V
-
AbstractMinecartEntity
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;<init>(Lnet/minecraft/entity/EntityType;Lnet/minecraft/world/World;DDD)V
intermediary <init>
Lnet/minecraft/class_1688;<init>(Lnet/minecraft/class_1299;Lnet/minecraft/class_1937;DDD)V
official <init>
Lcor;<init>(Lbsw;Ldcu;DDD)V
-
-
Method Details
-
create
public static AbstractMinecartEntity create(ServerWorld world, double x, double y, double z, AbstractMinecartEntity.Type type, ItemStack stack, @Nullable @Nullable PlayerEntity player) - Mappings:
Namespace Name Mixin selector named create
Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;create(Lnet/minecraft/server/world/ServerWorld;DDDLnet/minecraft/entity/vehicle/AbstractMinecartEntity$Type;Lnet/minecraft/item/ItemStack;Lnet/minecraft/entity/player/PlayerEntity;)Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;
intermediary method_7523
Lnet/minecraft/class_1688;method_7523(Lnet/minecraft/class_3218;DDDLnet/minecraft/class_1688$class_1689;Lnet/minecraft/class_1799;Lnet/minecraft/class_1657;)Lnet/minecraft/class_1688;
official a
Lcor;a(Laqt;DDDLcor$a;Lcuo;Lcmv;)Lcor;
-
getMoveEffect
Returns the possible effect(s) of an entity moving.- Overrides:
getMoveEffect
in classEntity
- Implementation Note:
- If an entity does not emit game events or play move sounds, this method should be overridden as returning a value other than ALL allows skipping some movement logic and boost ticking performance.
- Mappings:
Namespace Name Mixin selector named getMoveEffect
Lnet/minecraft/entity/Entity;getMoveEffect()Lnet/minecraft/entity/Entity$MoveEffect;
intermediary method_33570
Lnet/minecraft/class_1297;method_33570()Lnet/minecraft/class_1297$class_5799;
official bc
Lbsq;bc()Lbsq$b;
-
initDataTracker
Initializes data tracker.- Overrides:
initDataTracker
in classVehicleEntity
- API Note:
- Subclasses should override this and add to the builder any data that needs to be tracked.
- Mappings:
Namespace Name Mixin selector named initDataTracker
Lnet/minecraft/entity/Entity;initDataTracker(Lnet/minecraft/entity/data/DataTracker$Builder;)V
intermediary method_5693
Lnet/minecraft/class_1297;method_5693(Lnet/minecraft/class_2945$class_9222;)V
official a
Lbsq;a(Lajz$a;)V
-
collidesWith
Returns whether this entity cannot occupy the same space withother
.This returns
false
ifother
is connected through vehicles.- Overrides:
collidesWith
in classEntity
- Returns:
- whether this entity cannot occupy the same space with
other
- See Also:
- Mappings:
Namespace Name Mixin selector named collidesWith
Lnet/minecraft/entity/Entity;collidesWith(Lnet/minecraft/entity/Entity;)Z
intermediary method_30949
Lnet/minecraft/class_1297;method_30949(Lnet/minecraft/class_1297;)Z
official i
Lbsq;i(Lbsq;)Z
-
isPushable
public boolean isPushable()Returns whether the entity can be pushed by other entities.- Overrides:
isPushable
in classEntity
- Returns:
- whether the entity can be pushed by other entities
- Mappings:
Namespace Name Mixin selector named isPushable
Lnet/minecraft/entity/Entity;isPushable()Z
intermediary method_5810
Lnet/minecraft/class_1297;method_5810()Z
official bB
Lbsq;bB()Z
-
positionInPortal
Returns the entity's position in the portal after teleportation.- Overrides:
positionInPortal
in classEntity
- Returns:
- the entity's position in the portal after teleportation
- See Also:
- Mappings:
Namespace Name Mixin selector named positionInPortal
Lnet/minecraft/entity/Entity;positionInPortal(Lnet/minecraft/util/math/Direction$Axis;Lnet/minecraft/world/BlockLocating$Rectangle;)Lnet/minecraft/util/math/Vec3d;
intermediary method_30633
Lnet/minecraft/class_1297;method_30633(Lnet/minecraft/class_2350$class_2351;Lnet/minecraft/class_5459$class_5460;)Lnet/minecraft/class_243;
official a
Lbsq;a(Lji$a;Ll$a;)Leww;
-
getPassengerAttachmentPos
protected Vec3d getPassengerAttachmentPos(Entity passenger, EntityDimensions dimensions, float scaleFactor) - Overrides:
getPassengerAttachmentPos
in classEntity
- Mappings:
Namespace Name Mixin selector named getPassengerAttachmentPos
Lnet/minecraft/entity/Entity;getPassengerAttachmentPos(Lnet/minecraft/entity/Entity;Lnet/minecraft/entity/EntityDimensions;F)Lnet/minecraft/util/math/Vec3d;
intermediary method_52533
Lnet/minecraft/class_1297;method_52533(Lnet/minecraft/class_1297;Lnet/minecraft/class_4048;F)Lnet/minecraft/class_243;
official a
Lbsq;a(Lbsq;Lbst;F)Leww;
-
updatePassengerForDismount
Returns the position of the dismountedpassenger
.Vehicles should override this to return a suitable dismounting position for the passenger. Check the implementation of the subclass for details.
- Overrides:
updatePassengerForDismount
in classEntity
- Returns:
- the position of the dismounted
passenger
- See Also:
- Mappings:
Namespace Name Mixin selector named updatePassengerForDismount
Lnet/minecraft/entity/Entity;updatePassengerForDismount(Lnet/minecraft/entity/LivingEntity;)Lnet/minecraft/util/math/Vec3d;
intermediary method_24829
Lnet/minecraft/class_1297;method_24829(Lnet/minecraft/class_1309;)Lnet/minecraft/class_243;
official b
Lbsq;b(Lbtl;)Leww;
-
getVelocityMultiplier
protected float getVelocityMultiplier()- Overrides:
getVelocityMultiplier
in classEntity
- Mappings:
Namespace Name Mixin selector named getVelocityMultiplier
Lnet/minecraft/entity/Entity;getVelocityMultiplier()F
intermediary method_23326
Lnet/minecraft/class_1297;method_23326()F
official aO
Lbsq;aO()F
-
animateDamage
public void animateDamage(float yaw) Called on the client to animate the entity's damage (the wobble).- Overrides:
animateDamage
in classEntity
- Mappings:
Namespace Name Mixin selector named animateDamage
Lnet/minecraft/entity/Entity;animateDamage(F)V
intermediary method_5879
Lnet/minecraft/class_1297;method_5879(F)V
official n
Lbsq;n(F)V
-
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 named canHit
Lnet/minecraft/entity/Entity;canHit()Z
intermediary method_5863
Lnet/minecraft/class_1297;method_5863()Z
official bA
Lbsq;bA()Z
-
getAdjacentRailPositionsByShape
private static com.mojang.datafixers.util.Pair<Vec3i,Vec3i> getAdjacentRailPositionsByShape(RailShape shape) - Mappings:
Namespace Name Mixin selector named getAdjacentRailPositionsByShape
Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;getAdjacentRailPositionsByShape(Lnet/minecraft/block/enums/RailShape;)Lcom/mojang/datafixers/util/Pair;
intermediary method_22864
Lnet/minecraft/class_1688;method_22864(Lnet/minecraft/class_2768;)Lcom/mojang/datafixers/util/Pair;
official a
Lcor;a(Ldue;)Lcom/mojang/datafixers/util/Pair;
-
getMovementDirection
- Overrides:
getMovementDirection
in classEntity
- Mappings:
Namespace Name Mixin selector named getMovementDirection
Lnet/minecraft/entity/Entity;getMovementDirection()Lnet/minecraft/util/math/Direction;
intermediary method_5755
Lnet/minecraft/class_1297;method_5755()Lnet/minecraft/class_2350;
official cJ
Lbsq;cJ()Lji;
-
getGravity
protected double getGravity()- Overrides:
getGravity
in classEntity
- Mappings:
Namespace Name Mixin selector named getGravity
Lnet/minecraft/entity/Entity;getGravity()D
intermediary method_7490
Lnet/minecraft/class_1297;method_7490()D
official aZ
Lbsq;aZ()D
-
tick
public void tick()Ticks this entity.- Overrides:
tick
in classEntity
- See Also:
- API Note:
- This can be overridden to add additional logics.
super.tick();
should be called in those cases. - Implementation Note:
- By default, this delegates all logics to
Entity.baseTick()
. - Mappings:
Namespace Name Mixin selector named tick
Lnet/minecraft/entity/Entity;tick()V
intermediary method_5773
Lnet/minecraft/class_1297;method_5773()V
official l
Lbsq;l()V
-
getMaxSpeed
protected double getMaxSpeed()- Mappings:
Namespace Name Mixin selector named getMaxSpeed
Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;getMaxSpeed()D
intermediary method_7504
Lnet/minecraft/class_1688;method_7504()D
official p
Lcor;p()D
-
onActivatorRail
public void onActivatorRail(int x, int y, int z, boolean powered) - Mappings:
Namespace Name Mixin selector named onActivatorRail
Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;onActivatorRail(IIIZ)V
intermediary method_7506
Lnet/minecraft/class_1688;method_7506(IIIZ)V
official a
Lcor;a(IIIZ)V
-
moveOffRail
protected void moveOffRail()- Mappings:
Namespace Name Mixin selector named moveOffRail
Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;moveOffRail()V
intermediary method_7512
Lnet/minecraft/class_1688;method_7512()V
official s
Lcor;s()V
-
moveOnRail
- Mappings:
Namespace Name Mixin selector named moveOnRail
Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;moveOnRail(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V
intermediary method_7513
Lnet/minecraft/class_1688;method_7513(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)V
official c
Lcor;c(Ljd;Ldta;)V
-
isOnRail
public boolean isOnRail() -
willHitBlockAt
- Mappings:
Namespace Name Mixin selector named willHitBlockAt
Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;willHitBlockAt(Lnet/minecraft/util/math/BlockPos;)Z
intermediary method_18803
Lnet/minecraft/class_1688;method_18803(Lnet/minecraft/class_2338;)Z
official a
Lcor;a(Ljd;)Z
-
applySlowdown
protected void applySlowdown()- Mappings:
Namespace Name Mixin selector named applySlowdown
Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;applySlowdown()V
intermediary method_7525
Lnet/minecraft/class_1688;method_7525()V
official t
Lcor;t()V
-
snapPositionToRailWithOffset
@Nullable public @Nullable Vec3d snapPositionToRailWithOffset(double x, double y, double z, double offset) This method is used to determine the minecart's render orientation, by computing a position along the rail slightly before and slightly after the minecart's actual position.- Mappings:
Namespace Name Mixin selector named snapPositionToRailWithOffset
Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;snapPositionToRailWithOffset(DDDD)Lnet/minecraft/util/math/Vec3d;
intermediary method_7505
Lnet/minecraft/class_1688;method_7505(DDDD)Lnet/minecraft/class_243;
official a
Lcor;a(DDDD)Leww;
-
snapPositionToRail
- Mappings:
Namespace Name Mixin selector named snapPositionToRail
Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;snapPositionToRail(DDD)Lnet/minecraft/util/math/Vec3d;
intermediary method_7508
Lnet/minecraft/class_1688;method_7508(DDD)Lnet/minecraft/class_243;
official p
Lcor;p(DDD)Leww;
-
getVisibilityBoundingBox
- Overrides:
getVisibilityBoundingBox
in classEntity
- Mappings:
Namespace Name Mixin selector named getVisibilityBoundingBox
Lnet/minecraft/entity/Entity;getVisibilityBoundingBox()Lnet/minecraft/util/math/Box;
intermediary method_5830
Lnet/minecraft/class_1297;method_5830()Lnet/minecraft/class_238;
official h_
Lbsq;h_()Lewr;
-
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 named readCustomDataFromNbt
Lnet/minecraft/entity/Entity;readCustomDataFromNbt(Lnet/minecraft/nbt/NbtCompound;)V
intermediary method_5749
Lnet/minecraft/class_1297;method_5749(Lnet/minecraft/class_2487;)V
official a
Lbsq;a(Lua;)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.
- Specified by:
writeCustomDataToNbt
in classEntity
- See Also:
- Mappings:
Namespace Name Mixin selector named writeCustomDataToNbt
Lnet/minecraft/entity/Entity;writeCustomDataToNbt(Lnet/minecraft/nbt/NbtCompound;)V
intermediary method_5652
Lnet/minecraft/class_1297;method_5652(Lnet/minecraft/class_2487;)V
official b
Lbsq;b(Lua;)V
-
pushAwayFrom
- Overrides:
pushAwayFrom
in classEntity
- Mappings:
Namespace Name Mixin selector named pushAwayFrom
Lnet/minecraft/entity/Entity;pushAwayFrom(Lnet/minecraft/entity/Entity;)V
intermediary method_5697
Lnet/minecraft/class_1297;method_5697(Lnet/minecraft/class_1297;)V
official h
Lbsq;h(Lbsq;)V
-
updateTrackedPositionAndAngles
public void updateTrackedPositionAndAngles(double x, double y, double z, float yaw, float pitch, int interpolationSteps) - Overrides:
updateTrackedPositionAndAngles
in classEntity
- Mappings:
Namespace Name Mixin selector named updateTrackedPositionAndAngles
Lnet/minecraft/entity/Entity;updateTrackedPositionAndAngles(DDDFFI)V
intermediary method_5759
Lnet/minecraft/class_1297;method_5759(DDDFFI)V
official a
Lbsq;a(DDDFFI)V
-
getLerpTargetX
public double getLerpTargetX()- Overrides:
getLerpTargetX
in classEntity
- Mappings:
Namespace Name Mixin selector named getLerpTargetX
Lnet/minecraft/entity/Entity;getLerpTargetX()D
intermediary method_53830
Lnet/minecraft/class_1297;method_53830()D
official c_
Lbsq;c_()D
-
getLerpTargetY
public double getLerpTargetY()- Overrides:
getLerpTargetY
in classEntity
- Mappings:
Namespace Name Mixin selector named getLerpTargetY
Lnet/minecraft/entity/Entity;getLerpTargetY()D
intermediary method_53827
Lnet/minecraft/class_1297;method_53827()D
official d_
Lbsq;d_()D
-
getLerpTargetZ
public double getLerpTargetZ()- Overrides:
getLerpTargetZ
in classEntity
- Mappings:
Namespace Name Mixin selector named getLerpTargetZ
Lnet/minecraft/entity/Entity;getLerpTargetZ()D
intermediary method_53828
Lnet/minecraft/class_1297;method_53828()D
official L_
Lbsq;L_()D
-
getLerpTargetPitch
public float getLerpTargetPitch()- Overrides:
getLerpTargetPitch
in classEntity
- Mappings:
Namespace Name Mixin selector named getLerpTargetPitch
Lnet/minecraft/entity/Entity;getLerpTargetPitch()F
intermediary method_53829
Lnet/minecraft/class_1297;method_53829()F
official M_
Lbsq;M_()F
-
getLerpTargetYaw
public float getLerpTargetYaw()- Overrides:
getLerpTargetYaw
in classEntity
- Mappings:
Namespace Name Mixin selector named getLerpTargetYaw
Lnet/minecraft/entity/Entity;getLerpTargetYaw()F
intermediary method_53831
Lnet/minecraft/class_1297;method_53831()F
official e_
Lbsq;e_()F
-
setVelocityClient
public void setVelocityClient(double x, double y, double z) - Overrides:
setVelocityClient
in classEntity
- Mappings:
Namespace Name Mixin selector named setVelocityClient
Lnet/minecraft/entity/Entity;setVelocityClient(DDD)V
intermediary method_5750
Lnet/minecraft/class_1297;method_5750(DDD)V
official l
Lbsq;l(DDD)V
-
getMinecartType
- Mappings:
Namespace Name Mixin selector named getMinecartType
Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;getMinecartType()Lnet/minecraft/entity/vehicle/AbstractMinecartEntity$Type;
intermediary method_7518
Lnet/minecraft/class_1688;method_7518()Lnet/minecraft/class_1688$class_1689;
official v
Lcor;v()Lcor$a;
-
getContainedBlock
- Mappings:
Namespace Name Mixin selector named getContainedBlock
Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;getContainedBlock()Lnet/minecraft/block/BlockState;
intermediary method_7519
Lnet/minecraft/class_1688;method_7519()Lnet/minecraft/class_2680;
official w
Lcor;w()Ldta;
-
getDefaultContainedBlock
- Mappings:
Namespace Name Mixin selector named getDefaultContainedBlock
Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;getDefaultContainedBlock()Lnet/minecraft/block/BlockState;
intermediary method_7517
Lnet/minecraft/class_1688;method_7517()Lnet/minecraft/class_2680;
official x
Lcor;x()Ldta;
-
getBlockOffset
public int getBlockOffset()- Mappings:
Namespace Name Mixin selector named getBlockOffset
Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;getBlockOffset()I
intermediary method_7514
Lnet/minecraft/class_1688;method_7514()I
official y
Lcor;y()I
-
getDefaultBlockOffset
public int getDefaultBlockOffset()- Mappings:
Namespace Name Mixin selector named getDefaultBlockOffset
Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;getDefaultBlockOffset()I
intermediary method_7526
Lnet/minecraft/class_1688;method_7526()I
official z
Lcor;z()I
-
setCustomBlock
- Mappings:
Namespace Name Mixin selector named setCustomBlock
Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;setCustomBlock(Lnet/minecraft/block/BlockState;)V
intermediary method_7527
Lnet/minecraft/class_1688;method_7527(Lnet/minecraft/class_2680;)V
official c
Lcor;c(Ldta;)V
-
setCustomBlockOffset
public void setCustomBlockOffset(int offset) - Mappings:
Namespace Name Mixin selector named setCustomBlockOffset
Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;setCustomBlockOffset(I)V
intermediary method_7515
Lnet/minecraft/class_1688;method_7515(I)V
official c
Lcor;c(I)V
-
hasCustomBlock
public boolean hasCustomBlock()- Mappings:
Namespace Name Mixin selector named hasCustomBlock
Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;hasCustomBlock()Z
intermediary method_7510
Lnet/minecraft/class_1688;method_7510()Z
official A
Lcor;A()Z
-
setCustomBlockPresent
public void setCustomBlockPresent(boolean present) - Mappings:
Namespace Name Mixin selector named setCustomBlockPresent
Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;setCustomBlockPresent(Z)V
intermediary method_7511
Lnet/minecraft/class_1688;method_7511(Z)V
official a
Lcor;a(Z)V
-
getPickBlockStack
Returns the stack for creative "pick block" functionality, ornull
if there is none.If the entity has an item representation (such as boats or minecarts), this should be overridden to return a new stack. Note that
MobEntity
handles the spawn eggs.ItemFrameEntity
instead returns the copy of the stack held in the frame.- Overrides:
getPickBlockStack
in classEntity
- Returns:
- the stack for creative "pick block" functionality, or
null
if there is none - Mappings:
Namespace Name Mixin selector named getPickBlockStack
Lnet/minecraft/entity/Entity;getPickBlockStack()Lnet/minecraft/item/ItemStack;
intermediary method_31480
Lnet/minecraft/class_1297;method_31480()Lnet/minecraft/class_1799;
official dD
Lbsq;dD()Lcuo;
-