Class AbstractMinecartEntity
- All Implemented Interfaces:
ScoreHolder,CommandOutput,Nameable,EntityLike
- Direct Known Subclasses:
CommandBlockMinecartEntity,FurnaceMinecartEntity,MinecartEntity,SpawnerMinecartEntity,StorageMinecartEntity,TntMinecartEntity
- Mappings:
Namespace Name official chaintermediary net/minecraft/class_1688named net/minecraft/entity/vehicle/AbstractMinecartEntity
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class net.minecraft.entity.Entity
Entity.MoveEffect, Entity.PositionUpdater, Entity.RemovalReason -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intprivate doubleprivate Vec3dprivate doubleprivate doubleprivate doubleprivate doubleprivate static final TrackedData<Integer>private static final TrackedData<Integer>private static final TrackedData<Boolean>private static final ImmutableMap<EntityPose,ImmutableList<Integer>> private booleanprivate static final floatprotected static final floatprivate static final floatprivate 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, collidedSoftly, dataTracker, DEFAULT_FRICTION, DEFAULT_MIN_FREEZE_DAMAGE_TICKS, DEFAULT_PORTAL_COOLDOWN, distanceTraveled, FALL_FLYING_FLAG_INDEX, fallDistance, field_29991, field_44870, field_44871, field_44872, firstUpdate, FLAGS, fluidHeight, FREEZING_DAMAGE_INTERVAL, GLOWING_FLAG_INDEX, groundCollision, horizontalCollision, horizontalSpeed, ID_KEY, ignoreCameraFrustum, inNetherPortal, inPowderSnow, intersectionChecked, lastNetherPortalPosition, lastRenderX, lastRenderY, lastRenderZ, MAX_COMMAND_TAGS, MAX_RIDING_COOLDOWN, MIN_RISING_BUBBLE_COLUMN_SPEED, movementMultiplier, netherPortalTime, noClip, ON_FIRE_FLAG_INDEX, PASSENGERS_KEY, POSE, prevHorizontalSpeed, prevPitch, prevX, prevY, prevYaw, prevZ, random, ridingCooldown, speed, submergedInWater, supportingBlockPos, timeUntilRegen, touchingWater, uuid, UUID_KEY, uuidString, velocityDirty, velocityModified, verticalCollision, wasInPowderSnow, wasOnFireFields inherited from interface net.minecraft.server.command.CommandOutput
DUMMYFields inherited from interface net.minecraft.scoreboard.ScoreHolder
WILDCARD, WILDCARD_NAME -
Constructor Summary
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).protected voidbooleancanHit()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 AbstractMinecartEntitycreate(ServerWorld world, double x, double y, double z, AbstractMinecartEntity.Type type, ItemStack stack, @Nullable PlayerEntity player) intintfloatdoubledoublefloatdoubleprotected doubleabstract AbstractMinecartEntity.Typeprotected Entity.MoveEffectReturns the possible effect(s) of an entity moving.protected Vector3fgetPassengerAttachmentPos(Entity passenger, EntityDimensions dimensions, float scaleFactor) Returns the stack for creative "pick block" functionality, ornullif there is none.protected floatbooleanprotected voidInitializes data tracker.booleanisOnRail()booleanReturns whether the entity can be pushed by other entities.protected voidprotected voidmoveOnRail(BlockPos pos, BlockState state) voidonActivatorRail(int x, int y, int z, boolean powered) protected Vec3dpositionInPortal(Direction.Axis portalAxis, BlockLocating.Rectangle portalRect) Returns the entity's position in the portal after teleportation.voidpushAwayFrom(Entity entity) protected voidReads custom data fromnbt.voidsetCustomBlock(BlockState state) voidsetCustomBlockOffset(int offset) voidsetCustomBlockPresent(boolean present) voidsetVelocityClient(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.voidtick()Ticks this entity.updatePassengerForDismount(LivingEntity passenger) Returns the position of the dismountedpassenger.voidupdateTrackedPositionAndAngles(double x, double y, double z, float yaw, float pitch, int interpolationSteps) private booleanwillHitBlockAt(BlockPos pos) protected voidWrites custom data tonbt.Methods inherited from class net.minecraft.entity.vehicle.VehicleEntity
asItem, damage, getDamageWobbleSide, getDamageWobbleStrength, getDamageWobbleTicks, killAndDropItem, killAndDropSelf, setDamageWobbleSide, setDamageWobbleStrength, setDamageWobbleTicks, shouldAlwaysKillMethods inherited from class net.minecraft.entity.Entity
addAirTravelEffects, addCommandTag, addFlapEffects, addPassenger, addVelocity, addVelocity, adjustMovementForCollisions, adjustMovementForPiston, adjustMovementForSneaking, applyDamageEffects, 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, equipStack, extinguish, extinguishWithSound, fall, getAir, getArmorItems, 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, getEyeHeight, getEyePos, getEyeY, getFireTicks, getFirstPassenger, getFlag, getFluidHeight, getFreezingScale, getFrozenTicks, getHandItems, getHandPosOffset, getHeadYaw, getHeight, getHighSpeedSplashSound, getHorizontalFacing, getHoverEvent, getId, getItemsEquipped, getJumpVelocityMultiplier, getLandingBlockState, getLandingPos, getLeashOffset, getLeashOffset, getLeashPos, getLerpedPos, getMaxAir, getMaxNetherPortalTime, getMinFreezeDamageTicks, getName, getNameForScoreboard, getNameLabelHeight, getOppositeRotationVector, getOppositeRotationVector, getParticleX, getParticleZ, getPassengerDismountOffset, getPassengerList, getPassengerRidingPos, getPassengersDeep, getPermissionLevel, getPistonBehavior, getPitch, getPitch, getPlayerPassengers, getPortalCooldown, getPortalRect, getPos, getPose, getPosWithYOffset, getRandomBodyY, getRemovalReason, getRenderDistanceMultiplier, getRidingOffset, getRootVehicle, getRotationClient, getRotationVec, getRotationVecClient, getRotationVector, getRotationVector, getSafeFallDistance, getSavedEntityId, getScoreboardTeam, getServer, getSoundCategory, getSplashSound, getStackReference, getStandingEyeHeight, getStepHeight, getSteppingBlockState, getSteppingPos, getStepSoundPos, getSwimHeight, getSwimSound, getSyncedPos, getTargetingMargin, getTeamColorValue, getTeleportTarget, getTrackedPosition, getType, getUnscaledRidingOffset, getUuid, getUuidAsString, getVehicle, 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, move, moveToWorld, occludeVibrationSignals, offsetX, offsetZ, onBlockCollision, onBubbleColumnCollision, onBubbleColumnSurfaceCollision, onDamaged, onDataTrackerUpdate, onKilledOther, onLanding, onPassengerLookAround, onPlayerCollision, onRemoved, onSpawnPacket, onStartedTrackingBy, onStoppedTrackingBy, onStruckByLightning, onSwimmingStart, onTrackedDataSet, playCombinationStepSounds, playExtinguishSound, playSecondaryStepSound, playSound, playSoundIfNotSilent, playStepSound, playSwimSound, playSwimSound, populateCrashReport, pushOutOfBlocks, raycast, readNbt, refreshPosition, refreshPositionAfterTeleport, refreshPositionAfterTeleport, refreshPositionAndAngles, refreshPositionAndAngles, reinitDimensions, remove, removeAllPassengers, removeCommandTag, removeFromDimension, removePassenger, requestTeleport, requestTeleportAndDismount, requestTeleportOffset, resetPortalCooldown, resetPosition, saveNbt, saveSelfNbt, scheduleVelocityUpdate, sendMessage, setAir, setBodyYaw, setBoundingBox, setChangeListener, setCustomName, setCustomNameVisible, setFireTicks, setFlag, setFrozenTicks, setGlowing, setHeadYaw, setId, setInNetherPortal, setInPowderSnow, setInvisible, setInvulnerable, setNoGravity, setOnFire, setOnFireFor, setOnFireFromLava, setOnGround, setOnGround, setPitch, setPortalCooldown, setPos, setPose, setPosition, setPosition, setRemoved, setRenderDistanceMultiplier, setRotation, setSilent, setSneaking, setSprinting, setStepHeight, 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, teleport, tickInVoid, tickPortal, tickPortalCooldown, tickRiding, toNbtList, toNbtList, toString, tryCheckBlockCollision, unsetRemoved, updateEventHandler, updateKilledAdvancementCriterion, updateMovementInFluid, updatePassengerPosition, updatePassengerPosition, updatePosition, updatePositionAndAngles, updateSupportingBlockPos, updateSwimming, updateTrackedHeadRotation, updateTrackedPosition, updateVelocity, updateWaterState, writeNbtMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.server.command.CommandOutput
cannotBeSilencedMethods inherited from interface net.minecraft.scoreboard.ScoreHolder
getStyledDisplayName
-
Field Details
-
VILLAGER_PASSENGER_ATTACHMENT_Y_OFFSET
private static final float VILLAGER_PASSENGER_ATTACHMENT_Y_OFFSET- See Also:
- Mappings:
Namespace Name Mixin selector official cLcha;c:Fintermediary field_46219Lnet/minecraft/class_1688;field_46219:Fnamed VILLAGER_PASSENGER_ATTACHMENT_Y_OFFSETLnet/minecraft/entity/vehicle/AbstractMinecartEntity;VILLAGER_PASSENGER_ATTACHMENT_Y_OFFSET:F
-
PASSENGER_ATTACHMENT_Y_OFFSET
private static final float PASSENGER_ATTACHMENT_Y_OFFSET- See Also:
- Mappings:
Namespace Name Mixin selector official dLcha;d:Fintermediary field_46214Lnet/minecraft/class_1688;field_46214:Fnamed PASSENGER_ATTACHMENT_Y_OFFSETLnet/minecraft/entity/vehicle/AbstractMinecartEntity;PASSENGER_ATTACHMENT_Y_OFFSET:F
-
CUSTOM_BLOCK_ID
- Mappings:
Namespace Name Mixin selector official eLcha;e:Lagm;intermediary field_7671Lnet/minecraft/class_1688;field_7671:Lnet/minecraft/class_2940;named CUSTOM_BLOCK_IDLnet/minecraft/entity/vehicle/AbstractMinecartEntity;CUSTOM_BLOCK_ID:Lnet/minecraft/entity/data/TrackedData;
-
CUSTOM_BLOCK_OFFSET
- Mappings:
Namespace Name Mixin selector official iLcha;i:Lagm;intermediary field_7661Lnet/minecraft/class_1688;field_7661:Lnet/minecraft/class_2940;named CUSTOM_BLOCK_OFFSETLnet/minecraft/entity/vehicle/AbstractMinecartEntity;CUSTOM_BLOCK_OFFSET:Lnet/minecraft/entity/data/TrackedData;
-
CUSTOM_BLOCK_PRESENT
- Mappings:
Namespace Name Mixin selector official jLcha;j:Lagm;intermediary field_7670Lnet/minecraft/class_1688;field_7670:Lnet/minecraft/class_2940;named CUSTOM_BLOCK_PRESENTLnet/minecraft/entity/vehicle/AbstractMinecartEntity;CUSTOM_BLOCK_PRESENT:Lnet/minecraft/entity/data/TrackedData;
-
DISMOUNT_FREE_Y_SPACES_NEEDED
- Mappings:
Namespace Name Mixin selector official kLcha;k:Lcom/google/common/collect/ImmutableMap;intermediary field_24464Lnet/minecraft/class_1688;field_24464:Lcom/google/common/collect/ImmutableMap;named DISMOUNT_FREE_Y_SPACES_NEEDEDLnet/minecraft/entity/vehicle/AbstractMinecartEntity;DISMOUNT_FREE_Y_SPACES_NEEDED:Lcom/google/common/collect/ImmutableMap;
-
VELOCITY_SLOWDOWN_MULTIPLIER
protected static final float VELOCITY_SLOWDOWN_MULTIPLIER- See Also:
- Mappings:
Namespace Name Mixin selector official bLcha;b:Fintermediary field_30694Lnet/minecraft/class_1688;field_30694:Fnamed VELOCITY_SLOWDOWN_MULTIPLIERLnet/minecraft/entity/vehicle/AbstractMinecartEntity;VELOCITY_SLOWDOWN_MULTIPLIER: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 official uLcha;u:Ljava/util/Map;intermediary field_7664Lnet/minecraft/class_1688;field_7664:Ljava/util/Map;named ADJACENT_RAIL_POSITIONS_BY_SHAPELnet/minecraft/entity/vehicle/AbstractMinecartEntity;ADJACENT_RAIL_POSITIONS_BY_SHAPE:Ljava/util/Map;
-
yawFlipped
private boolean yawFlipped- Mappings:
Namespace Name Mixin selector official lLcha;l:Zintermediary field_7660Lnet/minecraft/class_1688;field_7660:Znamed yawFlippedLnet/minecraft/entity/vehicle/AbstractMinecartEntity;yawFlipped:Z
-
onRail
private boolean onRail- Mappings:
Namespace Name Mixin selector official mLcha;m:Zintermediary field_44917Lnet/minecraft/class_1688;field_44917:Znamed onRailLnet/minecraft/entity/vehicle/AbstractMinecartEntity;onRail:Z
-
clientInterpolationSteps
private int clientInterpolationSteps- Mappings:
Namespace Name Mixin selector official nLcha;n:Iintermediary field_45135Lnet/minecraft/class_1688;field_45135:Inamed clientInterpolationStepsLnet/minecraft/entity/vehicle/AbstractMinecartEntity;clientInterpolationSteps:I
-
clientX
private double clientX- Mappings:
Namespace Name Mixin selector official oLcha;o:Dintermediary field_45136Lnet/minecraft/class_1688;field_45136:Dnamed clientXLnet/minecraft/entity/vehicle/AbstractMinecartEntity;clientX:D
-
clientY
private double clientY- Mappings:
Namespace Name Mixin selector official pLcha;p:Dintermediary field_45137Lnet/minecraft/class_1688;field_45137:Dnamed clientYLnet/minecraft/entity/vehicle/AbstractMinecartEntity;clientY:D
-
clientZ
private double clientZ- Mappings:
Namespace Name Mixin selector official qLcha;q:Dintermediary field_45138Lnet/minecraft/class_1688;field_45138:Dnamed clientZLnet/minecraft/entity/vehicle/AbstractMinecartEntity;clientZ:D
-
clientYaw
private double clientYaw- Mappings:
Namespace Name Mixin selector official rLcha;r:Dintermediary field_45139Lnet/minecraft/class_1688;field_45139:Dnamed clientYawLnet/minecraft/entity/vehicle/AbstractMinecartEntity;clientYaw:D
-
clientPitch
private double clientPitch- Mappings:
Namespace Name Mixin selector official sLcha;s:Dintermediary field_45140Lnet/minecraft/class_1688;field_45140:Dnamed clientPitchLnet/minecraft/entity/vehicle/AbstractMinecartEntity;clientPitch:D
-
clientVelocity
- Mappings:
Namespace Name Mixin selector official tLcha;t:Lelt;intermediary field_45141Lnet/minecraft/class_1688;field_45141:Lnet/minecraft/class_243;named clientVelocityLnet/minecraft/entity/vehicle/AbstractMinecartEntity;clientVelocity:Lnet/minecraft/util/math/Vec3d;
-
-
Constructor Details
-
AbstractMinecartEntity
- Mappings:
Namespace Name Mixin selector official <init>Lblv;<init>(Lblz;Lctp;)Vintermediary <init>Lnet/minecraft/class_1297;<init>(Lnet/minecraft/class_1299;Lnet/minecraft/class_1937;)Vnamed <init>Lnet/minecraft/entity/Entity;<init>(Lnet/minecraft/entity/EntityType;Lnet/minecraft/world/World;)V
-
AbstractMinecartEntity
- Mappings:
Namespace Name Mixin selector official <init>Lcha;<init>(Lblz;Lctp;DDD)Vintermediary <init>Lnet/minecraft/class_1688;<init>(Lnet/minecraft/class_1299;Lnet/minecraft/class_1937;DDD)Vnamed <init>Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;<init>(Lnet/minecraft/entity/EntityType;Lnet/minecraft/world/World;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 official aLcha;a(Land;DDDLcha$a;Lcmy;Lcfi;)Lcha;intermediary method_7523Lnet/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;named createLnet/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;
-
getMoveEffect
Returns the possible effect(s) of an entity moving.- Overrides:
getMoveEffectin classEntity- Mappings:
Namespace Name Mixin selector official aWLblv;aW()Lblv$b;intermediary method_33570Lnet/minecraft/class_1297;method_33570()Lnet/minecraft/class_1297$class_5799;named getMoveEffectLnet/minecraft/entity/Entity;getMoveEffect()Lnet/minecraft/entity/Entity$MoveEffect;
-
initDataTracker
protected void initDataTracker()Initializes data tracker.- Overrides:
initDataTrackerin classVehicleEntity- Mappings:
Namespace Name Mixin selector official c_Lblv;c_()Vintermediary method_5693Lnet/minecraft/class_1297;method_5693()Vnamed initDataTrackerLnet/minecraft/entity/Entity;initDataTracker()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 official hLblv;h(Lblv;)Zintermediary method_30949Lnet/minecraft/class_1297;method_30949(Lnet/minecraft/class_1297;)Znamed collidesWithLnet/minecraft/entity/Entity;collidesWith(Lnet/minecraft/entity/Entity;)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 official buLblv;bu()Zintermediary method_5810Lnet/minecraft/class_1297;method_5810()Znamed isPushableLnet/minecraft/entity/Entity;isPushable()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 official aLblv;a(Lic$a;Ll$a;)Lelt;intermediary method_30633Lnet/minecraft/class_1297;method_30633(Lnet/minecraft/class_2350$class_2351;Lnet/minecraft/class_5459$class_5460;)Lnet/minecraft/class_243;named positionInPortalLnet/minecraft/entity/Entity;positionInPortal(Lnet/minecraft/util/math/Direction$Axis;Lnet/minecraft/world/BlockLocating$Rectangle;)Lnet/minecraft/util/math/Vec3d;
-
getPassengerAttachmentPos
protected Vector3f getPassengerAttachmentPos(Entity passenger, EntityDimensions dimensions, float scaleFactor) - Overrides:
getPassengerAttachmentPosin classEntity- Mappings:
Namespace Name Mixin selector official aLblv;a(Lblv;Lblw;F)Lorg/joml/Vector3f;intermediary method_52533Lnet/minecraft/class_1297;method_52533(Lnet/minecraft/class_1297;Lnet/minecraft/class_4048;F)Lorg/joml/Vector3f;named getPassengerAttachmentPosLnet/minecraft/entity/Entity;getPassengerAttachmentPos(Lnet/minecraft/entity/Entity;Lnet/minecraft/entity/EntityDimensions;F)Lorg/joml/Vector3f;
-
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 official bLblv;b(Lbml;)Lelt;intermediary method_24829Lnet/minecraft/class_1297;method_24829(Lnet/minecraft/class_1309;)Lnet/minecraft/class_243;named updatePassengerForDismountLnet/minecraft/entity/Entity;updatePassengerForDismount(Lnet/minecraft/entity/LivingEntity;)Lnet/minecraft/util/math/Vec3d;
-
getVelocityMultiplier
protected float getVelocityMultiplier()- Overrides:
getVelocityMultiplierin classEntity- Mappings:
Namespace Name Mixin selector official aLLblv;aL()Fintermediary method_23326Lnet/minecraft/class_1297;method_23326()Fnamed getVelocityMultiplierLnet/minecraft/entity/Entity;getVelocityMultiplier()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 official mLblv;m(F)Vintermediary method_5879Lnet/minecraft/class_1297;method_5879(F)Vnamed animateDamageLnet/minecraft/entity/Entity;animateDamage(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 official btLblv;bt()Zintermediary method_5863Lnet/minecraft/class_1297;method_5863()Znamed canHitLnet/minecraft/entity/Entity;canHit()Z
-
getAdjacentRailPositionsByShape
private static com.mojang.datafixers.util.Pair<Vec3i,Vec3i> getAdjacentRailPositionsByShape(RailShape shape) - Mappings:
Namespace Name Mixin selector official aLcha;a(Ldkl;)Lcom/mojang/datafixers/util/Pair;intermediary method_22864Lnet/minecraft/class_1688;method_22864(Lnet/minecraft/class_2768;)Lcom/mojang/datafixers/util/Pair;named getAdjacentRailPositionsByShapeLnet/minecraft/entity/vehicle/AbstractMinecartEntity;getAdjacentRailPositionsByShape(Lnet/minecraft/block/enums/RailShape;)Lcom/mojang/datafixers/util/Pair;
-
getMovementDirection
- Overrides:
getMovementDirectionin classEntity- Mappings:
Namespace Name Mixin selector official cFLblv;cF()Lic;intermediary method_5755Lnet/minecraft/class_1297;method_5755()Lnet/minecraft/class_2350;named getMovementDirectionLnet/minecraft/entity/Entity;getMovementDirection()Lnet/minecraft/util/math/Direction;
-
tick
public void tick()Ticks this entity. -
getMaxSpeed
protected double getMaxSpeed()- Mappings:
Namespace Name Mixin selector official qLcha;q()Dintermediary method_7504Lnet/minecraft/class_1688;method_7504()Dnamed getMaxSpeedLnet/minecraft/entity/vehicle/AbstractMinecartEntity;getMaxSpeed()D
-
onActivatorRail
public void onActivatorRail(int x, int y, int z, boolean powered) - Mappings:
Namespace Name Mixin selector official aLcha;a(IIIZ)Vintermediary method_7506Lnet/minecraft/class_1688;method_7506(IIIZ)Vnamed onActivatorRailLnet/minecraft/entity/vehicle/AbstractMinecartEntity;onActivatorRail(IIIZ)V
-
moveOffRail
protected void moveOffRail()- Mappings:
Namespace Name Mixin selector official sLcha;s()Vintermediary method_7512Lnet/minecraft/class_1688;method_7512()Vnamed moveOffRailLnet/minecraft/entity/vehicle/AbstractMinecartEntity;moveOffRail()V
-
moveOnRail
- Mappings:
Namespace Name Mixin selector official cLcha;c(Lhx;Ldjh;)Vintermediary method_7513Lnet/minecraft/class_1688;method_7513(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)Vnamed moveOnRailLnet/minecraft/entity/vehicle/AbstractMinecartEntity;moveOnRail(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V
-
isOnRail
public boolean isOnRail() -
willHitBlockAt
- Mappings:
Namespace Name Mixin selector official aLcha;a(Lhx;)Zintermediary method_18803Lnet/minecraft/class_1688;method_18803(Lnet/minecraft/class_2338;)Znamed willHitBlockAtLnet/minecraft/entity/vehicle/AbstractMinecartEntity;willHitBlockAt(Lnet/minecraft/util/math/BlockPos;)Z
-
applySlowdown
protected void applySlowdown()- Mappings:
Namespace Name Mixin selector official uLcha;u()Vintermediary method_7525Lnet/minecraft/class_1688;method_7525()Vnamed applySlowdownLnet/minecraft/entity/vehicle/AbstractMinecartEntity;applySlowdown()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 official aLcha;a(DDDD)Lelt;intermediary method_7505Lnet/minecraft/class_1688;method_7505(DDDD)Lnet/minecraft/class_243;named snapPositionToRailWithOffsetLnet/minecraft/entity/vehicle/AbstractMinecartEntity;snapPositionToRailWithOffset(DDDD)Lnet/minecraft/util/math/Vec3d;
-
snapPositionToRail
- Mappings:
Namespace Name Mixin selector official qLcha;q(DDD)Lelt;intermediary method_7508Lnet/minecraft/class_1688;method_7508(DDD)Lnet/minecraft/class_243;named snapPositionToRailLnet/minecraft/entity/vehicle/AbstractMinecartEntity;snapPositionToRail(DDD)Lnet/minecraft/util/math/Vec3d;
-
getVisibilityBoundingBox
- Overrides:
getVisibilityBoundingBoxin classEntity- Mappings:
Namespace Name Mixin selector official i_Lblv;i_()Lelo;intermediary method_5830Lnet/minecraft/class_1297;method_5830()Lnet/minecraft/class_238;named getVisibilityBoundingBoxLnet/minecraft/entity/Entity;getVisibilityBoundingBox()Lnet/minecraft/util/math/Box;
-
readCustomDataFromNbt
Reads custom data fromnbt. Subclasses have to implement this.NBT is a storage format; therefore, a data from NBT is loaded to an entity instance's fields, which are used for other operations instead of the NBT. The data is written back to NBT when saving the entity.
nbtmight not have all expected keys, or might have a key whose value does not meet the requirement (such as the type or the range). This method should fall back to a reasonable default value instead of throwing an exception.- Specified by:
readCustomDataFromNbtin classEntity- See Also:
- Mappings:
Namespace Name Mixin selector official aLblv;a(Lsn;)Vintermediary method_5749Lnet/minecraft/class_1297;method_5749(Lnet/minecraft/class_2487;)Vnamed readCustomDataFromNbtLnet/minecraft/entity/Entity;readCustomDataFromNbt(Lnet/minecraft/nbt/NbtCompound;)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:
writeCustomDataToNbtin classEntity- See Also:
- Mappings:
Namespace Name Mixin selector official bLblv;b(Lsn;)Vintermediary method_5652Lnet/minecraft/class_1297;method_5652(Lnet/minecraft/class_2487;)Vnamed writeCustomDataToNbtLnet/minecraft/entity/Entity;writeCustomDataToNbt(Lnet/minecraft/nbt/NbtCompound;)V
-
pushAwayFrom
- Overrides:
pushAwayFromin classEntity- Mappings:
Namespace Name Mixin selector official gLblv;g(Lblv;)Vintermediary method_5697Lnet/minecraft/class_1297;method_5697(Lnet/minecraft/class_1297;)Vnamed pushAwayFromLnet/minecraft/entity/Entity;pushAwayFrom(Lnet/minecraft/entity/Entity;)V
-
updateTrackedPositionAndAngles
public void updateTrackedPositionAndAngles(double x, double y, double z, float yaw, float pitch, int interpolationSteps) - Overrides:
updateTrackedPositionAndAnglesin classEntity- Mappings:
Namespace Name Mixin selector official aLblv;a(DDDFFI)Vintermediary method_5759Lnet/minecraft/class_1297;method_5759(DDDFFI)Vnamed updateTrackedPositionAndAnglesLnet/minecraft/entity/Entity;updateTrackedPositionAndAngles(DDDFFI)V
-
getLerpTargetX
public double getLerpTargetX()- Overrides:
getLerpTargetXin classEntity- Mappings:
Namespace Name Mixin selector official p_Lblv;p_()Dintermediary method_53830Lnet/minecraft/class_1297;method_53830()Dnamed getLerpTargetXLnet/minecraft/entity/Entity;getLerpTargetX()D
-
getLerpTargetY
public double getLerpTargetY()- Overrides:
getLerpTargetYin classEntity- Mappings:
Namespace Name Mixin selector official N_Lblv;N_()Dintermediary method_53827Lnet/minecraft/class_1297;method_53827()Dnamed getLerpTargetYLnet/minecraft/entity/Entity;getLerpTargetY()D
-
getLerpTargetZ
public double getLerpTargetZ()- Overrides:
getLerpTargetZin classEntity- Mappings:
Namespace Name Mixin selector official O_Lblv;O_()Dintermediary method_53828Lnet/minecraft/class_1297;method_53828()Dnamed getLerpTargetZLnet/minecraft/entity/Entity;getLerpTargetZ()D
-
getLerpTargetPitch
public float getLerpTargetPitch()- Overrides:
getLerpTargetPitchin classEntity- Mappings:
Namespace Name Mixin selector official f_Lblv;f_()Fintermediary method_53829Lnet/minecraft/class_1297;method_53829()Fnamed getLerpTargetPitchLnet/minecraft/entity/Entity;getLerpTargetPitch()F
-
getLerpTargetYaw
public float getLerpTargetYaw()- Overrides:
getLerpTargetYawin classEntity- Mappings:
Namespace Name Mixin selector official q_Lblv;q_()Fintermediary method_53831Lnet/minecraft/class_1297;method_53831()Fnamed getLerpTargetYawLnet/minecraft/entity/Entity;getLerpTargetYaw()F
-
setVelocityClient
public void setVelocityClient(double x, double y, double z) - Overrides:
setVelocityClientin classEntity- Mappings:
Namespace Name Mixin selector official lLblv;l(DDD)Vintermediary method_5750Lnet/minecraft/class_1297;method_5750(DDD)Vnamed setVelocityClientLnet/minecraft/entity/Entity;setVelocityClient(DDD)V
-
getMinecartType
- Mappings:
Namespace Name Mixin selector official wLcha;w()Lcha$a;intermediary method_7518Lnet/minecraft/class_1688;method_7518()Lnet/minecraft/class_1688$class_1689;named getMinecartTypeLnet/minecraft/entity/vehicle/AbstractMinecartEntity;getMinecartType()Lnet/minecraft/entity/vehicle/AbstractMinecartEntity$Type;
-
getContainedBlock
- Mappings:
Namespace Name Mixin selector official xLcha;x()Ldjh;intermediary method_7519Lnet/minecraft/class_1688;method_7519()Lnet/minecraft/class_2680;named getContainedBlockLnet/minecraft/entity/vehicle/AbstractMinecartEntity;getContainedBlock()Lnet/minecraft/block/BlockState;
-
getDefaultContainedBlock
- Mappings:
Namespace Name Mixin selector official yLcha;y()Ldjh;intermediary method_7517Lnet/minecraft/class_1688;method_7517()Lnet/minecraft/class_2680;named getDefaultContainedBlockLnet/minecraft/entity/vehicle/AbstractMinecartEntity;getDefaultContainedBlock()Lnet/minecraft/block/BlockState;
-
getBlockOffset
public int getBlockOffset()- Mappings:
Namespace Name Mixin selector official zLcha;z()Iintermediary method_7514Lnet/minecraft/class_1688;method_7514()Inamed getBlockOffsetLnet/minecraft/entity/vehicle/AbstractMinecartEntity;getBlockOffset()I
-
getDefaultBlockOffset
public int getDefaultBlockOffset()- Mappings:
Namespace Name Mixin selector official ALcha;A()Iintermediary method_7526Lnet/minecraft/class_1688;method_7526()Inamed getDefaultBlockOffsetLnet/minecraft/entity/vehicle/AbstractMinecartEntity;getDefaultBlockOffset()I
-
setCustomBlock
- Mappings:
Namespace Name Mixin selector official cLcha;c(Ldjh;)Vintermediary method_7527Lnet/minecraft/class_1688;method_7527(Lnet/minecraft/class_2680;)Vnamed setCustomBlockLnet/minecraft/entity/vehicle/AbstractMinecartEntity;setCustomBlock(Lnet/minecraft/block/BlockState;)V
-
setCustomBlockOffset
public void setCustomBlockOffset(int offset) - Mappings:
Namespace Name Mixin selector official cLcha;c(I)Vintermediary method_7515Lnet/minecraft/class_1688;method_7515(I)Vnamed setCustomBlockOffsetLnet/minecraft/entity/vehicle/AbstractMinecartEntity;setCustomBlockOffset(I)V
-
hasCustomBlock
public boolean hasCustomBlock()- Mappings:
Namespace Name Mixin selector official BLcha;B()Zintermediary method_7510Lnet/minecraft/class_1688;method_7510()Znamed hasCustomBlockLnet/minecraft/entity/vehicle/AbstractMinecartEntity;hasCustomBlock()Z
-
setCustomBlockPresent
public void setCustomBlockPresent(boolean present) - Mappings:
Namespace Name Mixin selector official aLcha;a(Z)Vintermediary method_7511Lnet/minecraft/class_1688;method_7511(Z)Vnamed setCustomBlockPresentLnet/minecraft/entity/vehicle/AbstractMinecartEntity;setCustomBlockPresent(Z)V
-
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 official dzLblv;dz()Lcmy;intermediary method_31480Lnet/minecraft/class_1297;method_31480()Lnet/minecraft/class_1799;named getPickBlockStackLnet/minecraft/entity/Entity;getPickBlockStack()Lnet/minecraft/item/ItemStack;
-