Class 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/AbstractMinecartEntity
intermediary net/minecraft/class_1688
official cuv
-
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 MinecartController
private static final TrackedData
<Optional<BlockState>> private static final 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, fallDistance, field_44870, field_44871, field_44872, field_49073, field_49791, firstUpdate, FLAGS, fluidHeight, FREEZING_DAMAGE_INTERVAL, GLIDING_FLAG_INDEX, GLOWING_FLAG_INDEX, groundCollision, horizontalCollision, ID_KEY, inPowderSnow, intersectionChecked, lastPitch, lastRenderX, lastRenderY, lastRenderZ, lastX, lastY, lastYaw, lastZ, MAX_COMMAND_TAGS, MAX_RIDING_COOLDOWN, MIN_RISING_BUBBLE_COLUMN_SPEED, movementMultiplier, noClip, ON_FIRE_FLAG_INDEX, PASSENGERS_KEY, portalManager, POSE, random, ridingCooldown, speed, submergedInWater, supportingBlockPos, timeUntilRegen, touchingWater, uuid, UUID_KEY, uuidString, velocityDirty, velocityModified, verticalCollision, wasInPowderSnow
Fields inherited from interface net.minecraft.scoreboard.ScoreHolder
WILDCARD, WILDCARD_NAME
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
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).void
protected Vec3d
applySlowdown
(Vec3d velocity) static boolean
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 <T extends AbstractMinecartEntity>
Tcreate
(World world, double x, double y, double z, EntityType<T> type, SpawnReason reason, ItemStack stack, @Nullable PlayerEntity player) int
private Optional
<BlockState> int
protected double
getLaunchDirection
(BlockPos railPos) protected double
getMaxSpeed
(ServerWorld world) protected Entity.MoveEffect
Returns the possible effect(s) of an entity moving.protected Vec3d
getPassengerAttachmentPos
(Entity passenger, EntityDimensions dimensions, float scaleFactor) abstract ItemStack
Returns the stack for creative "pick block" functionality, ornull
if there is none.protected float
protected void
initDataTracker
(DataTracker.Builder builder) Initializes data tracker.void
initPosition
(double x, double y, double z) boolean
boolean
isOnRail()
boolean
Returns whether the entity can be pushed by other entities.boolean
boolean
boolean
void
lerpPosAndRotation
(int step, double x, double y, double z, double yaw, double pitch) void
move
(MovementType type, Vec3d movement) protected double
moveAlongTrack
(BlockPos pos, RailShape shape, double remainingMovement) protected void
moveOffRail
(ServerWorld world) protected void
moveOnRail
(ServerWorld world) 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) private void
pushAwayFromMinecart
(AbstractMinecartEntity entity, double xDiff, double zDiff) protected void
Reads custom data fromnbt
.void
void
setBlockOffset
(int offset) void
setCustomBlockState
(Optional<BlockState> customBlockState) void
setOnRail
(boolean onRail) void
setVelocityClient
(double x, double y, double z) void
setYawFlipped
(boolean yawFlipped) void
tick()
Ticks this entity.void
updatePassengerForDismount
(LivingEntity passenger) Returns the position of the dismountedpassenger
.boolean
boolean
willHitBlockAt
(BlockPos pos) protected void
Writes custom data tonbt
.Methods inherited from class net.minecraft.entity.vehicle.VehicleEntity
asItem, clientDamage, damage, getDamageWobbleSide, getDamageWobbleStrength, getDamageWobbleTicks, getDefaultPortalCooldown, isImmuneToExplosion, killAndDropItem, killAndDropSelf, setDamageWobbleSide, setDamageWobbleStrength, setDamageWobbleTicks, shouldAlwaysKill
Methods 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, collidesWithStateAtPos, copyComponentFrom, copyComponentsFrom, copyComponentsFrom, copyFrom, copyPositionAndRotation, couldAcceptPassenger, createSpawnPacket, defrost, detach, discard, dismountVehicle, distanceTo, doesNotCollide, doesRenderOnFire, dropItem, dropItem, 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, getEntityWorld, getEyeHeight, getEyePos, getEyeY, getFacing, getFinalGravity, getFireTicks, getFirstPassenger, getFlag, getFluidHeight, getFreezingScale, getFrozenTicks, getHandPosOffset, getHeadYaw, getHeight, getHighSpeedSplashSound, getHorizontalFacing, getHoverEvent, getId, getJumpVelocityMultiplier, getLandingBlockState, getLandingPos, getLastRenderPos, getLeashOffset, getLeashOffset, 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, hasVehicle, igniteByLava, interact, interactAt, isAlive, isAlwaysInvulnerableTo, isAttackable, isCollidable, isConnectedThroughVehicle, isControlledByMainPlayer, isControlledByPlayer, isCrawling, isCustomNameVisible, isDescending, isFireImmune, isFlappingWings, 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, onKilledOther, onLanding, onPassengerLookAround, onPlayerCollision, onRemove, onRemoved, onSpawnPacket, onStartedTrackingBy, onStoppedTrackingBy, onStruckByLightning, onSwimmingStart, onTrackedDataSet, playCombinationStepSounds, playExtinguishSound, playSecondaryStepSound, playSound, playSoundIfNotSilent, playStepSound, playSwimSound, playSwimSound, popQueuedCollisionCheck, populateCrashReport, pushOutOfBlocks, raycast, readNbt, recalculateDimensions, refreshPositionAfterTeleport, refreshPositionAfterTeleport, refreshPositionAndAngles, refreshPositionAndAngles, refreshPositionAndAngles, reinitDimensions, remove, removeAllPassengers, removeCommandTag, removeFromDimension, removePassenger, requestTeleport, requestTeleportAndDismount, requestTeleportOffset, resetPortalCooldown, resetPosition, rotate, saveNbt, saveSelfNbt, scheduleVelocityUpdate, serverDamage, setAir, 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, shouldControlVehicles, shouldDismountUnderwater, shouldEscapePowderSnow, shouldPlayBurnSoundInLava, shouldRender, shouldRender, shouldRenderName, shouldSave, shouldSetPositionOnLoad, shouldSpawnSprintingParticles, shouldTickBlockCollision, sidedDamage, slowMovement, spawnBubbleColumnParticles, spawnSprintingParticles, squaredDistanceTo, squaredDistanceTo, squaredDistanceTo, startRiding, startRiding, stopRiding, streamPassengersAndSelf, streamSelfAndPassengers, teleport, teleportTo, tickBlockCollision, tickInVoid, tickPortalCooldown, tickPortalTeleportation, tickRiding, toString, tryUsePortal, unsetRemoved, updateEventHandler, updateKilledAdvancementCriterion, updateLastAngles, updateLastPosition, updateMovementInFluid, updatePassengerPosition, updatePassengerPosition, updatePosition, updatePositionAndAngles, updateSupportingBlockPos, updateSwimming, updateTrackedHeadRotation, updateTrackedPosition, updateTrackedPositionAndAngles, updateVelocity, writeNbt
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.minecraft.component.ComponentsAccess
getOrDefault, getTyped
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 b
Lcuv;b:Lfgc;
-
CUSTOM_BLOCK_STATE
- Mappings:
Namespace Name Mixin selector named CUSTOM_BLOCK_STATE
Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;CUSTOM_BLOCK_STATE:Lnet/minecraft/entity/data/TrackedData;
intermediary field_7671
Lnet/minecraft/class_1688;field_7671:Lnet/minecraft/class_2940;
official c
Lcuv;c:Laku;
-
BLOCK_OFFSET
- Mappings:
Namespace Name Mixin selector named BLOCK_OFFSET
Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;BLOCK_OFFSET:Lnet/minecraft/entity/data/TrackedData;
intermediary field_7661
Lnet/minecraft/class_1688;field_7661:Lnet/minecraft/class_2940;
official d
Lcuv;d:Laku;
-
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 h
Lcuv;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_MULTIPLIER
Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;VELOCITY_SLOWDOWN_MULTIPLIER:F
intermediary field_30694
Lnet/minecraft/class_1688;field_30694:F
official a
Lcuv;a:F
-
DEFAULT_YAW_FLIPPED
private static final boolean DEFAULT_YAW_FLIPPED- See Also:
- Mappings:
Namespace Name Mixin selector named DEFAULT_YAW_FLIPPED
Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;DEFAULT_YAW_FLIPPED:Z
intermediary field_57749
Lnet/minecraft/class_1688;field_57749:Z
official i
Lcuv;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_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 m
Lcuv;m:Ljava/util/Map;
-
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 j
Lcuv;j:Z
-
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
Lcuv;k:Z
-
controller
- Mappings:
Namespace Name Mixin selector named controller
Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;controller:Lnet/minecraft/entity/vehicle/MinecartController;
intermediary field_52517
Lnet/minecraft/class_1688;field_52517:Lnet/minecraft/class_9878;
official l
Lcuv;l:Lcvd;
-
-
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>
Lbxe;<init>(Lbxn;Ldkj;)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>
Lcuv;<init>(Lbxn;Ldkj;DDD)V
-
-
Method Details
-
initPosition
public void initPosition(double x, double y, double z) - Mappings:
Namespace Name Mixin selector named initPosition
Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;initPosition(DDD)V
intermediary method_64275
Lnet/minecraft/class_1688;method_64275(DDD)V
official p
Lcuv;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 create
Lnet/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_7523
Lnet/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 a
Lcuv;a(Ldkj;DDDLbxn;Lbxm;Ldak;Lcsi;)Lcuv;
-
getController
- Mappings:
Namespace Name Mixin selector named getController
Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;getController()Lnet/minecraft/entity/vehicle/MinecartController;
intermediary method_61569
Lnet/minecraft/class_1688;method_61569()Lnet/minecraft/class_9878;
official f
Lcuv;f()Lcvd;
-
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 bf
Lbxe;bf()Lbxe$c;
-
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
Lbxe;a(Laky$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
Lbxe;i(Lbxe;)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 bG
Lbxe;bG()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
Lbxe;a(Ljc$a;Lm$a;)Lfgc;
-
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
Lbxe;a(Lbxe;Lbxh;F)Lfgc;
-
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
Lbxe;b(Lbyf;)Lfgc;
-
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 aS
Lbxe;aS()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 q
Lbxe;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:
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 bF
Lbxe;bF()Z
-
getAdjacentRailPositionsByShape
public 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
Lcuv;a(Lecu;)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 cP
Lbxe;cP()Ljc;
-
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 bc
Lbxe;bc()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 g
Lbxe;g()V
-
isFirstUpdate
public boolean isFirstUpdate()- Mappings:
Namespace Name Mixin selector named isFirstUpdate
Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;isFirstUpdate()Z
intermediary method_62824
Lnet/minecraft/class_1688;method_62824()Z
official i
Lcuv;i()Z
-
getRailOrMinecartPos
- Mappings:
Namespace Name Mixin selector named getRailOrMinecartPos
Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;getRailOrMinecartPos()Lnet/minecraft/util/math/BlockPos;
intermediary method_62825
Lnet/minecraft/class_1688;method_62825()Lnet/minecraft/class_2338;
official l
Lcuv;l()Liw;
-
getMaxSpeed
- Mappings:
Namespace Name Mixin selector named getMaxSpeed
Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;getMaxSpeed(Lnet/minecraft/server/world/ServerWorld;)D
intermediary method_7504
Lnet/minecraft/class_1688;method_7504(Lnet/minecraft/class_3218;)D
official a
Lcuv;a(Lasb;)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
Lcuv;a(IIIZ)V
-
lerpPosAndRotation
public void lerpPosAndRotation(int step, double x, double y, double z, double yaw, double pitch) - Overrides:
lerpPosAndRotation
in classEntity
- Mappings:
Namespace Name Mixin selector named lerpPosAndRotation
Lnet/minecraft/entity/Entity;lerpPosAndRotation(IDDDDD)V
intermediary method_52532
Lnet/minecraft/class_1297;method_52532(IDDDDD)V
official a
Lbxe;a(IDDDDD)V
-
applyGravity
public void applyGravity()- Overrides:
applyGravity
in classEntity
- Mappings:
Namespace Name Mixin selector named applyGravity
Lnet/minecraft/entity/Entity;applyGravity()V
intermediary method_56990
Lnet/minecraft/class_1297;method_56990()V
official be
Lbxe;be()V
-
refreshPosition
public void refreshPosition()- Overrides:
refreshPosition
in classEntity
- Mappings:
Namespace Name Mixin selector named refreshPosition
Lnet/minecraft/entity/Entity;refreshPosition()V
intermediary method_23311
Lnet/minecraft/class_1297;method_23311()V
official av
Lbxe;av()V
-
updateWaterState
public boolean updateWaterState()- Overrides:
updateWaterState
in classEntity
- Mappings:
Namespace Name Mixin selector named updateWaterState
Lnet/minecraft/entity/Entity;updateWaterState()Z
intermediary method_5876
Lnet/minecraft/class_1297;method_5876()Z
official bo
Lbxe;bo()Z
-
getMovement
- Overrides:
getMovement
in classEntity
- Mappings:
Namespace Name Mixin selector named getMovement
Lnet/minecraft/entity/Entity;getMovement()Lnet/minecraft/util/math/Vec3d;
intermediary method_60478
Lnet/minecraft/class_1297;method_60478()Lnet/minecraft/class_243;
official ad
Lbxe;ad()Lfgc;
-
getInterpolator
- Overrides:
getInterpolator
in classEntity
- Mappings:
Namespace Name Mixin selector named getInterpolator
Lnet/minecraft/entity/Entity;getInterpolator()Lnet/minecraft/entity/PositionInterpolator;
intermediary method_66233
Lnet/minecraft/class_1297;method_66233()Lnet/minecraft/class_10584;
official l_
Lbxe;l_()Lbya;
-
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 k
Lbxe;k(DDD)V
-
moveOnRail
- Mappings:
Namespace Name Mixin selector named moveOnRail
Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;moveOnRail(Lnet/minecraft/server/world/ServerWorld;)V
intermediary method_7513
Lnet/minecraft/class_1688;method_7513(Lnet/minecraft/class_3218;)V
official b
Lcuv;b(Lasb;)V
-
moveOffRail
- Mappings:
Namespace Name Mixin selector named moveOffRail
Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;moveOffRail(Lnet/minecraft/server/world/ServerWorld;)V
intermediary method_7512
Lnet/minecraft/class_1688;method_7512(Lnet/minecraft/class_3218;)V
official e
Lcuv;e(Lasb;)V
-
moveAlongTrack
- Mappings:
Namespace Name Mixin selector named moveAlongTrack
Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;moveAlongTrack(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/enums/RailShape;D)D
intermediary method_61564
Lnet/minecraft/class_1688;method_61564(Lnet/minecraft/class_2338;Lnet/minecraft/class_2768;D)D
official a
Lcuv;a(Liw;Lecu;D)D
-
move
- Overrides:
move
in classEntity
- Mappings:
Namespace Name Mixin selector named move
Lnet/minecraft/entity/Entity;move(Lnet/minecraft/entity/MovementType;Lnet/minecraft/util/math/Vec3d;)V
intermediary method_5784
Lnet/minecraft/class_1297;method_5784(Lnet/minecraft/class_1313;Lnet/minecraft/class_243;)V
official a
Lbxe;a(Lbyj;Lfgc;)V
-
tickBlockCollision
public void tickBlockCollision()- Overrides:
tickBlockCollision
in classEntity
- Mappings:
Namespace Name Mixin selector named tickBlockCollision
Lnet/minecraft/entity/Entity;tickBlockCollision()V
intermediary method_61409
Lnet/minecraft/class_1297;method_61409()V
official aI
Lbxe;aI()V
-
isOnRail
public boolean isOnRail() -
setOnRail
public void setOnRail(boolean onRail) - Mappings:
Namespace Name Mixin selector named setOnRail
Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;setOnRail(Z)V
intermediary method_61565
Lnet/minecraft/class_1688;method_61565(Z)V
official a
Lcuv;a(Z)V
-
isYawFlipped
public boolean isYawFlipped()- Mappings:
Namespace Name Mixin selector named isYawFlipped
Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;isYawFlipped()Z
intermediary method_61571
Lnet/minecraft/class_1688;method_61571()Z
official m
Lcuv;m()Z
-
setYawFlipped
public void setYawFlipped(boolean yawFlipped) - Mappings:
Namespace Name Mixin selector named setYawFlipped
Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;setYawFlipped(Z)V
intermediary method_61567
Lnet/minecraft/class_1688;method_61567(Z)V
official b
Lcuv;b(Z)V
-
getLaunchDirection
- Mappings:
Namespace Name Mixin selector named getLaunchDirection
Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;getLaunchDirection(Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/util/math/Vec3d;
intermediary method_61563
Lnet/minecraft/class_1688;method_61563(Lnet/minecraft/class_2338;)Lnet/minecraft/class_243;
official a
Lcuv;a(Liw;)Lfgc;
-
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 b
Lcuv;b(Liw;)Z
-
applySlowdown
- Mappings:
Namespace Name Mixin selector named applySlowdown
Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;applySlowdown(Lnet/minecraft/util/math/Vec3d;)Lnet/minecraft/util/math/Vec3d;
intermediary method_7525
Lnet/minecraft/class_1688;method_7525(Lnet/minecraft/class_243;)Lnet/minecraft/class_243;
official a
Lcuv;a(Lfgc;)Lfgc;
-
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
Lbxe;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
Lbxe;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
Lbxe;h(Lbxe;)V
-
pushAwayFromMinecart
- Mappings:
Namespace Name Mixin selector named pushAwayFromMinecart
Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;pushAwayFromMinecart(Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;DD)V
intermediary method_64274
Lnet/minecraft/class_1688;method_64274(Lnet/minecraft/class_1688;DD)V
official a
Lcuv;a(Lcuv;DD)V
-
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 n
Lcuv;n()Lebq;
-
getCustomBlockState
- Mappings:
Namespace Name Mixin selector named getCustomBlockState
Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;getCustomBlockState()Ljava/util/Optional;
intermediary method_67672
Lnet/minecraft/class_1688;method_67672()Ljava/util/Optional;
official A
Lcuv;A()Ljava/util/Optional;
-
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 v
Lcuv;v()Lebq;
-
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 w
Lcuv;w()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 x
Lcuv;x()I
-
setCustomBlockState
- Mappings:
Namespace Name Mixin selector named setCustomBlockState
Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;setCustomBlockState(Ljava/util/Optional;)V
intermediary method_7527
Lnet/minecraft/class_1688;method_7527(Ljava/util/Optional;)V
official a
Lcuv;a(Ljava/util/Optional;)V
-
setBlockOffset
public void setBlockOffset(int offset) - Mappings:
Namespace Name Mixin selector named setBlockOffset
Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;setBlockOffset(I)V
intermediary method_7515
Lnet/minecraft/class_1688;method_7515(I)V
official c
Lcuv;c(I)V
-
areMinecartImprovementsEnabled
- Mappings:
Namespace Name Mixin selector named areMinecartImprovementsEnabled
Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;areMinecartImprovementsEnabled(Lnet/minecraft/world/World;)Z
intermediary method_61566
Lnet/minecraft/class_1688;method_61566(Lnet/minecraft/class_1937;)Z
official b
Lcuv;b(Ldkj;)Z
-
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 dI
Lbxe;dI()Ldak;
-
isRideable
public boolean isRideable()- Mappings:
Namespace Name Mixin selector named isRideable
Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;isRideable()Z
intermediary method_64272
Lnet/minecraft/class_1688;method_64272()Z
official y
Lcuv;y()Z
-
isSelfPropelling
public boolean isSelfPropelling()- Mappings:
Namespace Name Mixin selector named isSelfPropelling
Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;isSelfPropelling()Z
intermediary method_64273
Lnet/minecraft/class_1688;method_64273()Z
official z
Lcuv;z()Z
-