Package net.minecraft.entity.vehicle
Class AbstractMinecartEntity
java.lang.Object
net.minecraft.entity.Entity
net.minecraft.entity.vehicle.VehicleEntity
net.minecraft.entity.vehicle.AbstractMinecartEntity
- All Implemented Interfaces:
 ComponentsAccess,DataTracked,ScoreHolder,Nameable,EntityLike,UniquelyIdentifiable
- Direct Known Subclasses:
 CommandBlockMinecartEntity,FurnaceMinecartEntity,MinecartEntity,SpawnerMinecartEntity,StorageMinecartEntity,TntMinecartEntity
- Mappings:
 Namespace Name named net/minecraft/entity/vehicle/AbstractMinecartEntityintermediary net/minecraft/class_1688official cxg
- 
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.Entity
Entity.MoveEffect, Entity.PositionUpdater, Entity.RemovalReason - 
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final TrackedData<Integer> private final MinecartControllerprivate static final TrackedData<Optional<BlockState>> private static final booleanprivate static final ImmutableMap<EntityPose, ImmutableList<Integer>> private booleanprotected static final floatprivate static final Vec3dprivate booleanFields inherited from class net.minecraft.entity.vehicle.VehicleEntity
DAMAGE_WOBBLE_SIDE, DAMAGE_WOBBLE_STRENGTH, DAMAGE_WOBBLE_TICKSFields inherited from class net.minecraft.entity.Entity
age, AIR_KEY, collidedSoftly, CUSTOM_DATA_KEY, dataTracker, DEFAULT_FRICTION, DEFAULT_MIN_FREEZE_DAMAGE_TICKS, DEFAULT_PORTAL_COOLDOWN, distanceTraveled, FALL_DISTANCE_KEY, fallDistance, field_44870, field_44871, field_44872, field_49073, field_49791, FIRE_KEY, firstUpdate, FLAGS, fluidHeight, FREEZING_DAMAGE_INTERVAL, GLIDING_FLAG_INDEX, GLOWING_FLAG_INDEX, GLOWING_KEY, groundCollision, horizontalCollision, ID_KEY, inPowderSnow, intersectionChecked, INVULNERABLE_KEY, lastPitch, lastRenderX, lastRenderY, lastRenderZ, lastX, lastY, lastYaw, lastZ, MAX_COMMAND_TAGS, MAX_QUEUED_COLLISION_CHECKS, MAX_RIDING_COOLDOWN, MIN_RISING_BUBBLE_COLUMN_SPEED, MOTION_KEY, movementMultiplier, NO_GRAVITY_KEY, noClip, ON_FIRE_FLAG_INDEX, ON_GROUND_KEY, PASSENGERS_KEY, PORTAL_COOLDOWN_KEY, portalManager, POS_KEY, POSE, random, ridingCooldown, ROTATION_KEY, SILENT_KEY, speed, submergedInWater, supportingBlockPos, timeUntilRegen, touchingWater, uuid, UUID_KEY, uuidString, velocityDirty, velocityModified, verticalCollision, wasInPowderSnowFields inherited from interface net.minecraft.scoreboard.ScoreHolder
WILDCARD, WILDCARD_NAME - 
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractMinecartEntity(EntityType<?> type, World world) protectedAbstractMinecartEntity(EntityType<?> type, World world, double x, double y, double z)  - 
Method Summary
Modifier and TypeMethodDescriptionvoidanimateDamage(float yaw) Called on the client to animate the entity's damage (the wobble).voidprotected Vec3dapplySlowdown(Vec3d velocity) static booleanbooleancanHit()Returns whether the entity can be hit with a projectile or be targeted by the player crosshair.booleancollidesWith(Entity other) Returns whether this entity cannot occupy the same space withother.static <T extends AbstractMinecartEntity>
Tcreate(World world, double x, double y, double z, EntityType<T> type, SpawnReason reason, ItemStack stack, @Nullable PlayerEntity player) intprivate Optional<BlockState> intprotected doublegetLaunchDirection(BlockPos railPos) protected doublegetMaxSpeed(ServerWorld world) protected Entity.MoveEffectReturns the possible effect(s) of an entity moving.protected Vec3dgetPassengerAttachmentPos(Entity passenger, EntityDimensions dimensions, float scaleFactor) abstract ItemStackReturns the stack for creative "pick block" functionality, ornullif there is none.protected floatprotected voidinitDataTracker(DataTracker.Builder builder) Initializes data tracker.voidinitPosition(double x, double y, double z) booleanbooleanisOnRail()booleanReturns whether the entity can be pushed by other entities.booleanbooleanbooleanvoidlerpPosAndRotation(int step, double x, double y, double z, double yaw, double pitch) voidmove(MovementType type, Vec3d movement) protected doublemoveAlongTrack(BlockPos pos, RailShape shape, double remainingMovement) protected voidmoveOffRail(ServerWorld world) protected voidmoveOnRail(ServerWorld world) voidonActivatorRail(int x, int y, int z, boolean powered) voidonSpawnPacket(EntitySpawnS2CPacket packet) Called on the client when the entity receives a spawn packet.positionInPortal(Direction.Axis portalAxis, BlockLocating.Rectangle portalRect) Returns the entity's position in the portal after teleportation.voidpushAwayFrom(Entity entity) private voidpushAwayFromMinecart(AbstractMinecartEntity entity, double xDiff, double zDiff) protected voidreadCustomData(ReadView view) voidvoidsetBlockOffset(int offset) voidsetCustomBlockState(Optional<BlockState> customBlockState) voidsetOnRail(boolean onRail) voidsetVelocityClient(double x, double y, double z) voidsetYawFlipped(boolean yawFlipped) voidtick()Ticks this entity.voidupdatePassengerForDismount(LivingEntity passenger) Returns the position of the dismountedpassenger.booleanbooleanwillHitBlockAt(BlockPos pos) protected voidwriteCustomData(WriteView view) Methods inherited from class net.minecraft.entity.vehicle.VehicleEntity
asItem, clientDamage, damage, getDamageWobbleSide, getDamageWobbleStrength, getDamageWobbleTicks, getDefaultPortalCooldown, isImmuneToExplosion, killAndDropItem, killAndDropSelf, setDamageWobbleSide, setDamageWobbleStrength, setDamageWobbleTicks, shouldAlwaysKillMethods inherited from class net.minecraft.entity.Entity
addAirTravelEffects, addCommandTag, addFlapEffects, addPassenger, addPortalChunkTicketAt, addVelocity, addVelocity, addVelocityInternal, adjustMovementForCollisions, adjustMovementForPiston, adjustMovementForSneaking, applyBubbleColumnEffects, applyBubbleColumnSurfaceEffects, applyMirror, applyRotation, attemptTickInVoid, baseTick, bypassesLandingEffects, bypassesSteppingEffects, calculateBoundingBox, calculateDefaultBoundingBox, calculateDimensions, calculateNextStepSoundDistance, canActVoluntarily, canAddPassenger, canAvoidTraps, canBeHitByProjectile, canBeSpectated, canExplosionDestroyBlock, canFreeze, canModifyAt, canMoveVoluntarily, canSprintAsVehicle, canStartRiding, canTeleportBetween, canUsePortals, castComponentValue, changeLookDirection, checkDespawn, clearQueuedCollisionChecks, collides, collidesWithFluid, collidesWithStateAtPos, copyComponentFrom, copyComponentsFrom, copyComponentsFrom, copyFrom, copyPositionAndRotation, couldAcceptPassenger, createSpawnPacket, defrost, detach, detachAllHeldLeashes, discard, dismountVehicle, distanceTo, doesNotCollide, doesRenderOnFire, dropItem, dropItem, dropStack, dropStack, dropStack, emitGameEvent, emitGameEvent, equals, extinguish, extinguishWithSound, fall, get, getAir, getAttachments, getBlockPos, getBlockStateAtPos, getBlockX, getBlockY, getBlockZ, getBodyX, getBodyY, getBodyYaw, getBodyZ, getBoundingBox, getBrightnessAtEyes, getBurningDuration, getCameraPosVec, getChunkPos, getClientCameraPosVec, getCommandSource, getCommandTags, getControllingPassenger, getControllingVehicle, getCustomName, getDamageSources, getDataTracker, getDefaultName, getDimensions, getDisplayName, getEffectiveExplosionResistance, getErrorReporterContext, getEyeHeight, getEyePos, getEyeY, getFacing, getFinalGravity, getFireTicks, getFirstPassenger, getFlag, getFluidHeight, getFreezingScale, getFrozenTicks, getHandPosOffset, getHeadYaw, getHeight, getHeldQuadLeashOffsets, getHighSpeedSplashSound, getHorizontalFacing, getHoverEvent, getId, getJumpVelocityMultiplier, getLandingBlockState, getLandingPos, getLastRenderPos, getLeashPos, getLerpedPitch, getLerpedPos, getLerpedYaw, getLootTableKey, getMaxAir, getMinFreezeDamageTicks, getName, getNameForScoreboard, getOppositeRotationVector, getOppositeRotationVector, getParticleX, getParticleZ, getPassengerAttachmentPos, getPassengerDismountOffset, getPassengerList, getPassengerRidingPos, getPassengersDeep, 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, getWeaponStack, getWidth, getWorld, getWorldSpawnPos, getX, getY, getYaw, getYaw, getZ, handleAttack, handleFall, handleFallDamage, handleFallDamageForPassengers, handleStatus, hasCollidedSoftly, hasControllingPassenger, hasCustomName, hashCode, hasNoGravity, hasPassenger, hasPassenger, hasPassengerDeep, hasPassengers, hasPlayerRider, hasPortalCooldown, hasQuadLeashAttachmentPoints, hasVehicle, igniteByLava, interact, interactAt, isAlive, isAlwaysInvulnerableTo, isAtCloudHeight, isAttackable, isCollidable, isConnectedThroughVehicle, isControlledByMainPlayer, isControlledByPlayer, isCrawling, isCustomNameVisible, isDescending, isFireImmune, isFlappingWings, isFlyingVehicle, isFrozen, isGlowing, isGlowingLocal, isInFluid, isInLava, isInPose, isInRange, isInRange, isInSameTeam, isInsideWall, isInSneakingPose, isInSwimmingPose, isInterpolating, isInvisible, isInvisibleTo, isInvulnerable, isLiving, isLogicalSideForUpdatingMovement, isOnFire, isOnGround, isPartOf, isPlayer, isPushedByFluids, isRegionUnloaded, isRemoved, isSilent, isSneaking, isSneaky, isSpectator, isSprinting, isSubmergedIn, isSubmergedInWater, isSupportedBy, isSwimming, isTeammate, isTeamPlayer, isTouchingWater, isTouchingWaterOrRain, kill, lerpYaw, limitFallDistance, lookAt, movementInputToVelocity, occludeVibrationSignals, onBlockCollision, onBubbleColumnCollision, onBubbleColumnSurfaceCollision, onDamaged, onDataTrackerUpdate, onExplodedBy, onHeldLeashUpdate, onKilledOther, onLanding, onPassengerLookAround, onPlayerCollision, onRemove, onRemoved, onStartedTrackingBy, onStoppedTrackingBy, onStruckByLightning, onSwimmingStart, onTrackedDataSet, playCombinationStepSounds, playExtinguishSound, playSecondaryStepSound, playSound, playSoundIfNotSilent, playStepSound, playSwimSound, playSwimSound, popQueuedCollisionCheck, populateCrashReport, pushOutOfBlocks, raycast, readData, recalculateDimensions, refreshPositionAfterTeleport, refreshPositionAfterTeleport, refreshPositionAndAngles, refreshPositionAndAngles, refreshPositionAndAngles, reinitDimensions, remove, removeAllPassengers, removeCommandTag, removeFromDimension, removePassenger, requestTeleport, requestTeleportAndDismount, requestTeleportOffset, resetPortalCooldown, resetPosition, rotate, saveData, saveSelfData, scheduleVelocityUpdate, serverDamage, setAir, setAlwaysSyncAbsolute, setAngles, setApplicableComponent, setBodyYaw, setBoundingBox, setChangeListener, setComponent, setCustomName, setCustomNameVisible, setFireTicks, setFlag, setFrozenTicks, setGlowing, setHeadYaw, setId, setInPowderSnow, setInvisible, setInvulnerable, setLastPositionAndAngles, setMovement, setMovement, setNoGravity, setOnFire, setOnFireFor, setOnFireForTicks, setOnFireFromLava, setOnGround, setPitch, setPortalCooldown, setPos, setPose, setPosition, setPosition, setPosition, setRemoved, setRenderDistanceMultiplier, setRotation, setSilent, setSneaking, setSprinting, setSwimming, setUuid, setVelocity, setVelocity, setWorld, setYaw, shouldAlwaysSyncAbsolute, shouldControlVehicles, shouldDismountUnderwater, shouldEscapePowderSnow, shouldPlayBurnSoundInLava, shouldRender, shouldRender, shouldRenderName, shouldSave, shouldSetPositionOnLoad, shouldSpawnSprintingParticles, shouldTickBlockCollision, sidedDamage, slowMovement, snipAllHeldLeashes, spawnBubbleColumnParticles, spawnSprintingParticles, squaredDistanceTo, squaredDistanceTo, squaredDistanceTo, startRiding, startRiding, stopRiding, streamPassengersAndSelf, streamSelfAndPassengers, teleport, teleportSpectatingPlayers, teleportTo, tickBlockCollision, tickHeldLeash, tickInVoid, tickPortalCooldown, tickPortalTeleportation, tickRiding, toString, tryUsePortal, unsetRemoved, updateEventHandler, updateKilledAdvancementCriterion, updateLastAngles, updateLastPosition, updateMovementInFluid, updatePassengerPosition, updatePassengerPosition, updatePosition, updatePositionAndAngles, updateSupportingBlockPos, updateSwimming, updateTrackedHeadRotation, updateTrackedPosition, updateTrackedPositionAndAngles, updateVelocity, writeDataMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.component.ComponentsAccess
getOrDefault, getTypedMethods inherited from interface net.minecraft.scoreboard.ScoreHolder
getStyledDisplayName 
- 
Field Details
- 
VILLAGER_PASSENGER_ATTACHMENT_POS
- Mappings:
 Namespace Name Mixin selector named VILLAGER_PASSENGER_ATTACHMENT_POSLnet/minecraft/entity/vehicle/AbstractMinecartEntity;VILLAGER_PASSENGER_ATTACHMENT_POS:Lnet/minecraft/util/math/Vec3d;intermediary field_47822Lnet/minecraft/class_1688;field_47822:Lnet/minecraft/class_243;official bLcxg;b:Lfis;
 - 
CUSTOM_BLOCK_STATE
- Mappings:
 Namespace Name Mixin selector named CUSTOM_BLOCK_STATELnet/minecraft/entity/vehicle/AbstractMinecartEntity;CUSTOM_BLOCK_STATE:Lnet/minecraft/entity/data/TrackedData;intermediary field_7671Lnet/minecraft/class_1688;field_7671:Lnet/minecraft/class_2940;official cLcxg;c:Lalh;
 - 
BLOCK_OFFSET
- Mappings:
 Namespace Name Mixin selector named BLOCK_OFFSETLnet/minecraft/entity/vehicle/AbstractMinecartEntity;BLOCK_OFFSET:Lnet/minecraft/entity/data/TrackedData;intermediary field_7661Lnet/minecraft/class_1688;field_7661:Lnet/minecraft/class_2940;official dLcxg;d:Lalh;
 - 
DISMOUNT_FREE_Y_SPACES_NEEDED
- Mappings:
 Namespace Name Mixin selector named DISMOUNT_FREE_Y_SPACES_NEEDEDLnet/minecraft/entity/vehicle/AbstractMinecartEntity;DISMOUNT_FREE_Y_SPACES_NEEDED:Lcom/google/common/collect/ImmutableMap;intermediary field_24464Lnet/minecraft/class_1688;field_24464:Lcom/google/common/collect/ImmutableMap;official hLcxg;h: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_MULTIPLIERLnet/minecraft/entity/vehicle/AbstractMinecartEntity;VELOCITY_SLOWDOWN_MULTIPLIER:Fintermediary field_30694Lnet/minecraft/class_1688;field_30694:Fofficial aLcxg;a:F
 - 
DEFAULT_YAW_FLIPPED
private static final boolean DEFAULT_YAW_FLIPPED- See Also:
 - Mappings:
 Namespace Name Mixin selector named DEFAULT_YAW_FLIPPEDLnet/minecraft/entity/vehicle/AbstractMinecartEntity;DEFAULT_YAW_FLIPPED:Zintermediary field_57749Lnet/minecraft/class_1688;field_57749:Zofficial iLcxg;i:Z
 - 
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_SHAPELnet/minecraft/entity/vehicle/AbstractMinecartEntity;ADJACENT_RAIL_POSITIONS_BY_SHAPE:Ljava/util/Map;intermediary field_7664Lnet/minecraft/class_1688;field_7664:Ljava/util/Map;official mLcxg;m:Ljava/util/Map;
 - 
onRail
private boolean onRail- Mappings:
 Namespace Name Mixin selector named onRailLnet/minecraft/entity/vehicle/AbstractMinecartEntity;onRail:Zintermediary field_44917Lnet/minecraft/class_1688;field_44917:Zofficial jLcxg;j:Z
 - 
yawFlipped
private boolean yawFlipped- Mappings:
 Namespace Name Mixin selector named yawFlippedLnet/minecraft/entity/vehicle/AbstractMinecartEntity;yawFlipped:Zintermediary field_7660Lnet/minecraft/class_1688;field_7660:Zofficial kLcxg;k:Z
 - 
controller
- Mappings:
 Namespace Name Mixin selector named controllerLnet/minecraft/entity/vehicle/AbstractMinecartEntity;controller:Lnet/minecraft/entity/vehicle/MinecartController;intermediary field_52517Lnet/minecraft/class_1688;field_52517:Lnet/minecraft/class_9878;official lLcxg;l:Lcxo;
 
 - 
 - 
Constructor Details
- 
AbstractMinecartEntity
- Mappings:
 Namespace Name Mixin selector named <init>Lnet/minecraft/entity/Entity;<init>(Lnet/minecraft/entity/EntityType;Lnet/minecraft/world/World;)Vintermediary <init>Lnet/minecraft/class_1297;<init>(Lnet/minecraft/class_1299;Lnet/minecraft/class_1937;)Vofficial <init>Lbzm;<init>(Lbzv;Ldmu;)V
 - 
AbstractMinecartEntity
- Mappings:
 Namespace Name Mixin selector named <init>Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;<init>(Lnet/minecraft/entity/EntityType;Lnet/minecraft/world/World;DDD)Vintermediary <init>Lnet/minecraft/class_1688;<init>(Lnet/minecraft/class_1299;Lnet/minecraft/class_1937;DDD)Vofficial <init>Lcxg;<init>(Lbzv;Ldmu;DDD)V
 
 - 
 - 
Method Details
- 
initPosition
public void initPosition(double x, double y, double z) - Mappings:
 Namespace Name Mixin selector named initPositionLnet/minecraft/entity/vehicle/AbstractMinecartEntity;initPosition(DDD)Vintermediary method_64275Lnet/minecraft/class_1688;method_64275(DDD)Vofficial pLcxg;p(DDD)V
 - 
create
@Nullable public static <T extends AbstractMinecartEntity> T create(World world, double x, double y, double z, EntityType<T> type, SpawnReason reason, ItemStack stack, @Nullable @Nullable PlayerEntity player) - Mappings:
 Namespace Name Mixin selector named createLnet/minecraft/entity/vehicle/AbstractMinecartEntity;create(Lnet/minecraft/world/World;DDDLnet/minecraft/entity/EntityType;Lnet/minecraft/entity/SpawnReason;Lnet/minecraft/item/ItemStack;Lnet/minecraft/entity/player/PlayerEntity;)Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;intermediary method_7523Lnet/minecraft/class_1688;method_7523(Lnet/minecraft/class_1937;DDDLnet/minecraft/class_1299;Lnet/minecraft/class_3730;Lnet/minecraft/class_1799;Lnet/minecraft/class_1657;)Lnet/minecraft/class_1688;official aLcxg;a(Ldmu;DDDLbzv;Lbzu;Ldcv;Lcut;)Lcxg;
 - 
getController
- Mappings:
 Namespace Name Mixin selector named getControllerLnet/minecraft/entity/vehicle/AbstractMinecartEntity;getController()Lnet/minecraft/entity/vehicle/MinecartController;intermediary method_61569Lnet/minecraft/class_1688;method_61569()Lnet/minecraft/class_9878;official fLcxg;f()Lcxo;
 - 
getMoveEffect
Returns the possible effect(s) of an entity moving.- Overrides:
 getMoveEffectin 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 getMoveEffectLnet/minecraft/entity/Entity;getMoveEffect()Lnet/minecraft/entity/Entity$MoveEffect;intermediary method_33570Lnet/minecraft/class_1297;method_33570()Lnet/minecraft/class_1297$class_5799;official bjLbzm;bj()Lbzm$d;
 - 
initDataTracker
Initializes data tracker.- Overrides:
 initDataTrackerin 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 initDataTrackerLnet/minecraft/entity/Entity;initDataTracker(Lnet/minecraft/entity/data/DataTracker$Builder;)Vintermediary method_5693Lnet/minecraft/class_1297;method_5693(Lnet/minecraft/class_2945$class_9222;)Vofficial aLbzm;a(Lall$a;)V
 - 
collidesWith
Returns whether this entity cannot occupy the same space withother.This returns
falseifotheris connected through vehicles.- Overrides:
 collidesWithin classEntity- Returns:
 - whether this entity cannot occupy the same space with 
other - See Also:
 - Mappings:
 Namespace Name Mixin selector named collidesWithLnet/minecraft/entity/Entity;collidesWith(Lnet/minecraft/entity/Entity;)Zintermediary method_30949Lnet/minecraft/class_1297;method_30949(Lnet/minecraft/class_1297;)Zofficial iLbzm;i(Lbzm;)Z
 - 
isPushable
public boolean isPushable()Returns whether the entity can be pushed by other entities.- Overrides:
 isPushablein classEntity- Returns:
 - whether the entity can be pushed by other entities
 - Mappings:
 Namespace Name Mixin selector named isPushableLnet/minecraft/entity/Entity;isPushable()Zintermediary method_5810Lnet/minecraft/class_1297;method_5810()Zofficial bLLbzm;bL()Z
 - 
positionInPortal
Returns the entity's position in the portal after teleportation.- Overrides:
 positionInPortalin classEntity- Returns:
 - the entity's position in the portal after teleportation
 - See Also:
 - Mappings:
 Namespace Name Mixin selector named positionInPortalLnet/minecraft/entity/Entity;positionInPortal(Lnet/minecraft/util/math/Direction$Axis;Lnet/minecraft/world/BlockLocating$Rectangle;)Lnet/minecraft/util/math/Vec3d;intermediary method_30633Lnet/minecraft/class_1297;method_30633(Lnet/minecraft/class_2350$class_2351;Lnet/minecraft/class_5459$class_5460;)Lnet/minecraft/class_243;official aLbzm;a(Ljh$a;Lm$a;)Lfis;
 - 
getPassengerAttachmentPos
protected Vec3d getPassengerAttachmentPos(Entity passenger, EntityDimensions dimensions, float scaleFactor) - Overrides:
 getPassengerAttachmentPosin classEntity- Mappings:
 Namespace Name Mixin selector named getPassengerAttachmentPosLnet/minecraft/entity/Entity;getPassengerAttachmentPos(Lnet/minecraft/entity/Entity;Lnet/minecraft/entity/EntityDimensions;F)Lnet/minecraft/util/math/Vec3d;intermediary method_52533Lnet/minecraft/class_1297;method_52533(Lnet/minecraft/class_1297;Lnet/minecraft/class_4048;F)Lnet/minecraft/class_243;official aLbzm;a(Lbzm;Lbzp;F)Lfis;
 - 
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:
 updatePassengerForDismountin classEntity- Returns:
 - the position of the dismounted 
passenger - See Also:
 - Mappings:
 Namespace Name Mixin selector named updatePassengerForDismountLnet/minecraft/entity/Entity;updatePassengerForDismount(Lnet/minecraft/entity/LivingEntity;)Lnet/minecraft/util/math/Vec3d;intermediary method_24829Lnet/minecraft/class_1297;method_24829(Lnet/minecraft/class_1309;)Lnet/minecraft/class_243;official bLbzm;b(Lcam;)Lfis;
 - 
getVelocityMultiplier
protected float getVelocityMultiplier()- Overrides:
 getVelocityMultiplierin classEntity- Mappings:
 Namespace Name Mixin selector named getVelocityMultiplierLnet/minecraft/entity/Entity;getVelocityMultiplier()Fintermediary method_23326Lnet/minecraft/class_1297;method_23326()Fofficial aWLbzm;aW()F
 - 
animateDamage
public void animateDamage(float yaw) Called on the client to animate the entity's damage (the wobble).- Overrides:
 animateDamagein classEntity- Mappings:
 Namespace Name Mixin selector named animateDamageLnet/minecraft/entity/Entity;animateDamage(F)Vintermediary method_5879Lnet/minecraft/class_1297;method_5879(F)Vofficial qLbzm;q(F)V
 - 
canHit
public boolean canHit()Returns whether the entity can be hit with a projectile or be targeted by the player crosshair.- Overrides:
 canHitin classEntity- Returns:
 - whether the entity can be hit with a projectile or be targeted by the player crosshair
 - Mappings:
 Namespace Name Mixin selector named canHitLnet/minecraft/entity/Entity;canHit()Zintermediary method_5863Lnet/minecraft/class_1297;method_5863()Zofficial bKLbzm;bK()Z
 - 
getAdjacentRailPositionsByShape
public static com.mojang.datafixers.util.Pair<Vec3i,Vec3i> getAdjacentRailPositionsByShape(RailShape shape) - Mappings:
 Namespace Name Mixin selector named getAdjacentRailPositionsByShapeLnet/minecraft/entity/vehicle/AbstractMinecartEntity;getAdjacentRailPositionsByShape(Lnet/minecraft/block/enums/RailShape;)Lcom/mojang/datafixers/util/Pair;intermediary method_22864Lnet/minecraft/class_1688;method_22864(Lnet/minecraft/class_2768;)Lcom/mojang/datafixers/util/Pair;official aLcxg;a(Leff;)Lcom/mojang/datafixers/util/Pair;
 - 
getMovementDirection
- Overrides:
 getMovementDirectionin classEntity- Mappings:
 Namespace Name Mixin selector named getMovementDirectionLnet/minecraft/entity/Entity;getMovementDirection()Lnet/minecraft/util/math/Direction;intermediary method_5755Lnet/minecraft/class_1297;method_5755()Lnet/minecraft/class_2350;official cTLbzm;cT()Ljh;
 - 
getGravity
protected double getGravity()- Overrides:
 getGravityin classEntity- Mappings:
 Namespace Name Mixin selector named getGravityLnet/minecraft/entity/Entity;getGravity()Dintermediary method_7490Lnet/minecraft/class_1297;method_7490()Dofficial bgLbzm;bg()D
 - 
tick
public void tick()Ticks this entity.- Overrides:
 tickin 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 tickLnet/minecraft/entity/Entity;tick()Vintermediary method_5773Lnet/minecraft/class_1297;method_5773()Vofficial gLbzm;g()V
 - 
isFirstUpdate
public boolean isFirstUpdate()- Mappings:
 Namespace Name Mixin selector named isFirstUpdateLnet/minecraft/entity/vehicle/AbstractMinecartEntity;isFirstUpdate()Zintermediary method_62824Lnet/minecraft/class_1688;method_62824()Zofficial iLcxg;i()Z
 - 
getRailOrMinecartPos
- Mappings:
 Namespace Name Mixin selector named getRailOrMinecartPosLnet/minecraft/entity/vehicle/AbstractMinecartEntity;getRailOrMinecartPos()Lnet/minecraft/util/math/BlockPos;intermediary method_62825Lnet/minecraft/class_1688;method_62825()Lnet/minecraft/class_2338;official lLcxg;l()Ljb;
 - 
getMaxSpeed
- Mappings:
 Namespace Name Mixin selector named getMaxSpeedLnet/minecraft/entity/vehicle/AbstractMinecartEntity;getMaxSpeed(Lnet/minecraft/server/world/ServerWorld;)Dintermediary method_7504Lnet/minecraft/class_1688;method_7504(Lnet/minecraft/class_3218;)Dofficial aLcxg;a(Laub;)D
 - 
onActivatorRail
public void onActivatorRail(int x, int y, int z, boolean powered) - Mappings:
 Namespace Name Mixin selector named onActivatorRailLnet/minecraft/entity/vehicle/AbstractMinecartEntity;onActivatorRail(IIIZ)Vintermediary method_7506Lnet/minecraft/class_1688;method_7506(IIIZ)Vofficial aLcxg;a(IIIZ)V
 - 
lerpPosAndRotation
public void lerpPosAndRotation(int step, double x, double y, double z, double yaw, double pitch) - Overrides:
 lerpPosAndRotationin classEntity- Mappings:
 Namespace Name Mixin selector named lerpPosAndRotationLnet/minecraft/entity/Entity;lerpPosAndRotation(IDDDDD)Vintermediary method_52532Lnet/minecraft/class_1297;method_52532(IDDDDD)Vofficial aLbzm;a(IDDDDD)V
 - 
applyGravity
public void applyGravity()- Overrides:
 applyGravityin classEntity- Mappings:
 Namespace Name Mixin selector named applyGravityLnet/minecraft/entity/Entity;applyGravity()Vintermediary method_56990Lnet/minecraft/class_1297;method_56990()Vofficial biLbzm;bi()V
 - 
refreshPosition
public void refreshPosition()- Overrides:
 refreshPositionin classEntity- Mappings:
 Namespace Name Mixin selector named refreshPositionLnet/minecraft/entity/Entity;refreshPosition()Vintermediary method_23311Lnet/minecraft/class_1297;method_23311()Vofficial ayLbzm;ay()V
 - 
updateWaterState
public boolean updateWaterState()- Overrides:
 updateWaterStatein classEntity- Mappings:
 Namespace Name Mixin selector named updateWaterStateLnet/minecraft/entity/Entity;updateWaterState()Zintermediary method_5876Lnet/minecraft/class_1297;method_5876()Zofficial btLbzm;bt()Z
 - 
getMovement
- Overrides:
 getMovementin classEntity- Mappings:
 Namespace Name Mixin selector named getMovementLnet/minecraft/entity/Entity;getMovement()Lnet/minecraft/util/math/Vec3d;intermediary method_60478Lnet/minecraft/class_1297;method_60478()Lnet/minecraft/class_243;official aeLbzm;ae()Lfis;
 - 
getInterpolator
- Overrides:
 getInterpolatorin classEntity- Mappings:
 Namespace Name Mixin selector named getInterpolatorLnet/minecraft/entity/Entity;getInterpolator()Lnet/minecraft/entity/PositionInterpolator;intermediary method_66233Lnet/minecraft/class_1297;method_66233()Lnet/minecraft/class_10584;official l_Lbzm;l_()Lcah;
 - 
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 classEntity- Mappings:
 Namespace Name Mixin selector named onSpawnPacketLnet/minecraft/entity/Entity;onSpawnPacket(Lnet/minecraft/network/packet/s2c/play/EntitySpawnS2CPacket;)Vintermediary method_31471Lnet/minecraft/class_1297;method_31471(Lnet/minecraft/class_2604;)Vofficial aLbzm;a(Lacr;)V
 - 
setVelocityClient
public void setVelocityClient(double x, double y, double z) - Overrides:
 setVelocityClientin classEntity- Mappings:
 Namespace Name Mixin selector named setVelocityClientLnet/minecraft/entity/Entity;setVelocityClient(DDD)Vintermediary method_5750Lnet/minecraft/class_1297;method_5750(DDD)Vofficial kLbzm;k(DDD)V
 - 
moveOnRail
- Mappings:
 Namespace Name Mixin selector named moveOnRailLnet/minecraft/entity/vehicle/AbstractMinecartEntity;moveOnRail(Lnet/minecraft/server/world/ServerWorld;)Vintermediary method_7513Lnet/minecraft/class_1688;method_7513(Lnet/minecraft/class_3218;)Vofficial bLcxg;b(Laub;)V
 - 
moveOffRail
- Mappings:
 Namespace Name Mixin selector named moveOffRailLnet/minecraft/entity/vehicle/AbstractMinecartEntity;moveOffRail(Lnet/minecraft/server/world/ServerWorld;)Vintermediary method_7512Lnet/minecraft/class_1688;method_7512(Lnet/minecraft/class_3218;)Vofficial eLcxg;e(Laub;)V
 - 
moveAlongTrack
- Mappings:
 Namespace Name Mixin selector named moveAlongTrackLnet/minecraft/entity/vehicle/AbstractMinecartEntity;moveAlongTrack(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/enums/RailShape;D)Dintermediary method_61564Lnet/minecraft/class_1688;method_61564(Lnet/minecraft/class_2338;Lnet/minecraft/class_2768;D)Dofficial aLcxg;a(Ljb;Leff;D)D
 - 
move
- Overrides:
 movein classEntity- Mappings:
 Namespace Name Mixin selector named moveLnet/minecraft/entity/Entity;move(Lnet/minecraft/entity/MovementType;Lnet/minecraft/util/math/Vec3d;)Vintermediary method_5784Lnet/minecraft/class_1297;method_5784(Lnet/minecraft/class_1313;Lnet/minecraft/class_243;)Vofficial aLbzm;a(Lcaq;Lfis;)V
 - 
tickBlockCollision
public void tickBlockCollision()- Overrides:
 tickBlockCollisionin classEntity- Mappings:
 Namespace Name Mixin selector named tickBlockCollisionLnet/minecraft/entity/Entity;tickBlockCollision()Vintermediary method_61409Lnet/minecraft/class_1297;method_61409()Vofficial aLLbzm;aL()V
 - 
isOnRail
public boolean isOnRail() - 
setOnRail
public void setOnRail(boolean onRail) - Mappings:
 Namespace Name Mixin selector named setOnRailLnet/minecraft/entity/vehicle/AbstractMinecartEntity;setOnRail(Z)Vintermediary method_61565Lnet/minecraft/class_1688;method_61565(Z)Vofficial aLcxg;a(Z)V
 - 
isYawFlipped
public boolean isYawFlipped()- Mappings:
 Namespace Name Mixin selector named isYawFlippedLnet/minecraft/entity/vehicle/AbstractMinecartEntity;isYawFlipped()Zintermediary method_61571Lnet/minecraft/class_1688;method_61571()Zofficial mLcxg;m()Z
 - 
setYawFlipped
public void setYawFlipped(boolean yawFlipped) - Mappings:
 Namespace Name Mixin selector named setYawFlippedLnet/minecraft/entity/vehicle/AbstractMinecartEntity;setYawFlipped(Z)Vintermediary method_61567Lnet/minecraft/class_1688;method_61567(Z)Vofficial bLcxg;b(Z)V
 - 
getLaunchDirection
- Mappings:
 Namespace Name Mixin selector named getLaunchDirectionLnet/minecraft/entity/vehicle/AbstractMinecartEntity;getLaunchDirection(Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/util/math/Vec3d;intermediary method_61563Lnet/minecraft/class_1688;method_61563(Lnet/minecraft/class_2338;)Lnet/minecraft/class_243;official aLcxg;a(Ljb;)Lfis;
 - 
willHitBlockAt
- Mappings:
 Namespace Name Mixin selector named willHitBlockAtLnet/minecraft/entity/vehicle/AbstractMinecartEntity;willHitBlockAt(Lnet/minecraft/util/math/BlockPos;)Zintermediary method_18803Lnet/minecraft/class_1688;method_18803(Lnet/minecraft/class_2338;)Zofficial bLcxg;b(Ljb;)Z
 - 
applySlowdown
- Mappings:
 Namespace Name Mixin selector named applySlowdownLnet/minecraft/entity/vehicle/AbstractMinecartEntity;applySlowdown(Lnet/minecraft/util/math/Vec3d;)Lnet/minecraft/util/math/Vec3d;intermediary method_7525Lnet/minecraft/class_1688;method_7525(Lnet/minecraft/class_243;)Lnet/minecraft/class_243;official aLcxg;a(Lfis;)Lfis;
 - 
readCustomData
- Specified by:
 readCustomDatain classEntity- Mappings:
 Namespace Name Mixin selector named readCustomDataLnet/minecraft/entity/Entity;readCustomData(Lnet/minecraft/storage/ReadView;)Vintermediary method_5749Lnet/minecraft/class_1297;method_5749(Lnet/minecraft/class_11368;)Vofficial aLbzm;a(Lfda;)V
 - 
writeCustomData
- Specified by:
 writeCustomDatain classEntity- Mappings:
 Namespace Name Mixin selector named writeCustomDataLnet/minecraft/entity/Entity;writeCustomData(Lnet/minecraft/storage/WriteView;)Vintermediary method_5652Lnet/minecraft/class_1297;method_5652(Lnet/minecraft/class_11372;)Vofficial aLbzm;a(Lfdc;)V
 - 
pushAwayFrom
- Overrides:
 pushAwayFromin classEntity- Mappings:
 Namespace Name Mixin selector named pushAwayFromLnet/minecraft/entity/Entity;pushAwayFrom(Lnet/minecraft/entity/Entity;)Vintermediary method_5697Lnet/minecraft/class_1297;method_5697(Lnet/minecraft/class_1297;)Vofficial hLbzm;h(Lbzm;)V
 - 
pushAwayFromMinecart
- Mappings:
 Namespace Name Mixin selector named pushAwayFromMinecartLnet/minecraft/entity/vehicle/AbstractMinecartEntity;pushAwayFromMinecart(Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;DD)Vintermediary method_64274Lnet/minecraft/class_1688;method_64274(Lnet/minecraft/class_1688;DD)Vofficial aLcxg;a(Lcxg;DD)V
 - 
getContainedBlock
- Mappings:
 Namespace Name Mixin selector named getContainedBlockLnet/minecraft/entity/vehicle/AbstractMinecartEntity;getContainedBlock()Lnet/minecraft/block/BlockState;intermediary method_7519Lnet/minecraft/class_1688;method_7519()Lnet/minecraft/class_2680;official nLcxg;n()Leeb;
 - 
getCustomBlockState
- Mappings:
 Namespace Name Mixin selector named getCustomBlockStateLnet/minecraft/entity/vehicle/AbstractMinecartEntity;getCustomBlockState()Ljava/util/Optional;intermediary method_67672Lnet/minecraft/class_1688;method_67672()Ljava/util/Optional;official zLcxg;z()Ljava/util/Optional;
 - 
getDefaultContainedBlock
- Mappings:
 Namespace Name Mixin selector named getDefaultContainedBlockLnet/minecraft/entity/vehicle/AbstractMinecartEntity;getDefaultContainedBlock()Lnet/minecraft/block/BlockState;intermediary method_7517Lnet/minecraft/class_1688;method_7517()Lnet/minecraft/class_2680;official uLcxg;u()Leeb;
 - 
getBlockOffset
public int getBlockOffset()- Mappings:
 Namespace Name Mixin selector named getBlockOffsetLnet/minecraft/entity/vehicle/AbstractMinecartEntity;getBlockOffset()Iintermediary method_7514Lnet/minecraft/class_1688;method_7514()Iofficial vLcxg;v()I
 - 
getDefaultBlockOffset
public int getDefaultBlockOffset()- Mappings:
 Namespace Name Mixin selector named getDefaultBlockOffsetLnet/minecraft/entity/vehicle/AbstractMinecartEntity;getDefaultBlockOffset()Iintermediary method_7526Lnet/minecraft/class_1688;method_7526()Iofficial wLcxg;w()I
 - 
setCustomBlockState
- Mappings:
 Namespace Name Mixin selector named setCustomBlockStateLnet/minecraft/entity/vehicle/AbstractMinecartEntity;setCustomBlockState(Ljava/util/Optional;)Vintermediary method_7527Lnet/minecraft/class_1688;method_7527(Ljava/util/Optional;)Vofficial aLcxg;a(Ljava/util/Optional;)V
 - 
setBlockOffset
public void setBlockOffset(int offset) - Mappings:
 Namespace Name Mixin selector named setBlockOffsetLnet/minecraft/entity/vehicle/AbstractMinecartEntity;setBlockOffset(I)Vintermediary method_7515Lnet/minecraft/class_1688;method_7515(I)Vofficial cLcxg;c(I)V
 - 
areMinecartImprovementsEnabled
- Mappings:
 Namespace Name Mixin selector named areMinecartImprovementsEnabledLnet/minecraft/entity/vehicle/AbstractMinecartEntity;areMinecartImprovementsEnabled(Lnet/minecraft/world/World;)Zintermediary method_61566Lnet/minecraft/class_1688;method_61566(Lnet/minecraft/class_1937;)Zofficial bLcxg;b(Ldmu;)Z
 - 
getPickBlockStack
Returns the stack for creative "pick block" functionality, ornullif 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
MobEntityhandles the spawn eggs.ItemFrameEntityinstead returns the copy of the stack held in the frame.- Overrides:
 getPickBlockStackin classEntity- Returns:
 - the stack for creative "pick block" functionality, or 
nullif there is none - Mappings:
 Namespace Name Mixin selector named getPickBlockStackLnet/minecraft/entity/Entity;getPickBlockStack()Lnet/minecraft/item/ItemStack;intermediary method_31480Lnet/minecraft/class_1297;method_31480()Lnet/minecraft/class_1799;official dMLbzm;dM()Ldcv;
 - 
isRideable
public boolean isRideable()- Mappings:
 Namespace Name Mixin selector named isRideableLnet/minecraft/entity/vehicle/AbstractMinecartEntity;isRideable()Zintermediary method_64272Lnet/minecraft/class_1688;method_64272()Zofficial xLcxg;x()Z
 - 
isSelfPropelling
public boolean isSelfPropelling()- Mappings:
 Namespace Name Mixin selector named isSelfPropellingLnet/minecraft/entity/vehicle/AbstractMinecartEntity;isSelfPropelling()Zintermediary method_64273Lnet/minecraft/class_1688;method_64273()Zofficial yLcxg;y()Z
 
 -