Package net.minecraft.entity.vehicle
Class AbstractMinecartEntity
java.lang.Object
net.minecraft.entity.Entity
net.minecraft.entity.vehicle.AbstractMinecartEntity
- All Implemented Interfaces:
EntityLike
,CommandOutput
,Nameable
- Direct Known Subclasses:
CommandBlockMinecartEntity
,FurnaceMinecartEntity
,MinecartEntity
,SpawnerMinecartEntity
,StorageMinecartEntity
,TntMinecartEntity
public abstract class AbstractMinecartEntity extends Entity
- Mappings:
Namespace Name official bja
intermediary net/minecraft/class_1688
named net/minecraft/entity/vehicle/AbstractMinecartEntity
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AbstractMinecartEntity.Type
Nested classes/interfaces inherited from class net.minecraft.entity.Entity
Entity.class_5799, Entity.PositionUpdater, Entity.RemovalReason
-
Field Summary
Fields Modifier and Type Field Description private static Map<RailShape,com.mojang.datafixers.util.Pair<Vec3i,Vec3i>>
ADJACENT_RAIL_POSITIONS_BY_SHAPE
private int
clientInterpolationSteps
private double
clientPitch
private double
clientX
private double
clientXVelocity
private double
clientY
private double
clientYaw
private double
clientYVelocity
private double
clientZ
private double
clientZVelocity
private static TrackedData<Integer>
CUSTOM_BLOCK_ID
private static TrackedData<Integer>
CUSTOM_BLOCK_OFFSET
private static TrackedData<Boolean>
CUSTOM_BLOCK_PRESENT
private static TrackedData<Integer>
DAMAGE_WOBBLE_SIDE
private static TrackedData<Float>
DAMAGE_WOBBLE_STRENGTH
private static TrackedData<Integer>
DAMAGE_WOBBLE_TICKS
private static ImmutableMap<EntityPose,ImmutableList<Integer>>
DISMOUNT_FREE_Y_SPACES_NEEDED
private boolean
yawFlipped
Fields inherited from class net.minecraft.entity.Entity
age, dataTracker, distanceTraveled, fallDistance, field_28627, field_28629, firstUpdate, FLAGS, fluidHeight, glowing, horizontalCollision, horizontalSpeed, ignoreCameraFrustum, inanimate, inNetherPortal, inPowderSnow, lastNetherPortalPosition, lastRenderX, lastRenderY, lastRenderZ, LOGGER, movementMultiplier, netherPortalTime, noClip, onGround, pitch, POSE, prevHorizontalSpeed, prevPitch, prevX, prevY, prevYaw, prevZ, pushSpeedReduction, random, ridingCooldown, stepHeight, submergedFluidTag, submergedInWater, timeUntilRegen, touchingWater, uuid, uuidString, velocityDirty, velocityModified, verticalCollision, wasInPowderSnow, world, yaw
Fields inherited from interface net.minecraft.server.command.CommandOutput
DUMMY
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractMinecartEntity(EntityType<?> type, World world)
protected
AbstractMinecartEntity(EntityType<?> type, World world, double x, double y, double z)
-
Method Summary
Modifier and Type Method Description void
animateDamage()
protected void
applySlowdown()
boolean
collides()
boolean
collidesWith(Entity other)
static AbstractMinecartEntity
create(World world, double x, double y, double z, AbstractMinecartEntity.Type type)
Packet<?>
createSpawnPacket()
boolean
damage(DamageSource source, float amount)
void
dropItems(DamageSource damageSource)
private static com.mojang.datafixers.util.Pair<Vec3i,Vec3i>
getAdjacentRailPositionsByShape(RailShape shape)
int
getBlockOffset()
BlockState
getContainedBlock()
int
getDamageWobbleSide()
float
getDamageWobbleStrength()
int
getDamageWobbleTicks()
int
getDefaultBlockOffset()
BlockState
getDefaultContainedBlock()
protected double
getMaxOffRailSpeed()
abstract AbstractMinecartEntity.Type
getMinecartType()
double
getMountedHeightOffset()
Direction
getMovementDirection()
ItemStack
getPickBlockStack()
protected float
getVelocityMultiplier()
Box
getVisibilityBoundingBox()
boolean
hasCustomBlock()
protected void
initDataTracker()
boolean
isPushable()
protected Vec3d
method_30633(Direction.Axis axis, class_5459.class_5460 class_5460)
protected Entity.class_5799
method_33570()
protected void
moveOffRail()
protected void
moveOnRail(BlockPos pos, BlockState state)
void
onActivatorRail(int x, int y, int z, boolean powered)
void
pushAwayFrom(Entity entity)
protected void
readCustomDataFromTag(CompoundTag tag)
void
setCustomBlock(BlockState state)
void
setCustomBlockOffset(int offset)
void
setCustomBlockPresent(boolean present)
void
setDamageWobbleSide(int wobbleSide)
void
setDamageWobbleStrength(float damageWobbleStrength)
void
setDamageWobbleTicks(int wobbleTicks)
void
setVelocityClient(double x, double y, double z)
Vec3d
snapPositionToRail(double x, double y, double z)
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.void
tick()
Vec3d
updatePassengerForDismount(LivingEntity passenger)
void
updateTrackedPositionAndAngles(double x, double y, double z, float yaw, float pitch, int interpolationSteps, boolean interpolate)
private boolean
willHitBlockAt(BlockPos pos)
protected void
writeCustomDataToTag(CompoundTag tag)
Methods inherited from class net.minecraft.entity.Entity
addPassenger, addScoreboardTag, addVelocity, adjustMovementForCollisions, adjustMovementForCollisions, adjustMovementForPiston, adjustMovementForSneaking, adjustSingleAxisMovementForCollisions, applyMirror, applyRotation, attemptTickInVoid, baseTick, bypassesLandingEffects, bypassesSteppingEffects, calculateBoundsForPose, calculateDimensions, calculateNextStepSoundDistance, canAddPassenger, canAvoidTraps, canBeRiddenInWater, canBeSpectated, canExplosionDestroyBlock, canFly, canFreeze, canStartRiding, canUsePortals, changeLookDirection, checkBlockCollision, checkDespawn, collidesWithStateAtPos, copyFrom, copyPositionAndRotation, dealDamage, detach, discard, dismountVehicle, distanceTo, doesNotCollide, doesRenderOnFire, dropItem, dropItem, dropStack, dropStack, emitGameEvent, emitGameEvent, entityDataRequiresOperator, equals, equipStack, extinguish, fall, fromTag, getAir, getArmorItems, getBlockPos, getBlockX, getBlockY, getBlockZ, getBodyY, getBoundingBox, getBrightnessAtEyes, getBurningDuration, getCameraPosVec, getChunkPos, getClientCameraPosVec, getCommandSource, getCustomName, getDataTracker, getDefaultName, getDefaultNetherPortalCooldown, getDimensions, getDisplayName, getEffectiveExplosionResistance, getEntityName, getEntityWorld, getEyeHeight, getEyeHeight, getEyeY, getFireTicks, getFirstPassenger, getFlag, getFluidHeight, getFreezingScale, getFrozenTicks, getHeadYaw, getHeight, getHeightOffset, getHighSpeedSplashSound, getHorizontalFacing, getHoverEvent, getId, getItemsEquipped, getItemsHand, getJumpVelocityMultiplier, getLandingBlockState, getLandingPos, getLerpedPos, getMaxAir, getMaxNetherPortalTime, getMinFreezeDamageTicks, getName, getOppositeRotationVector, getOppositeRotationVector, getParticleX, getParticleZ, getPassengerDismountOffset, getPassengerList, getPassengersDeep, getPermissionLevel, getPistonBehavior, getPitch, getPos, getPose, getPrimaryPassenger, getRandomBodyY, getRenderDistanceMultiplier, getRootVehicle, getRotationClient, getRotationVec, getRotationVecClient, getRotationVector, getRotationVector, getSafeFallDistance, getSavedEntityId, getScoreboardTags, getScoreboardTeam, getServer, getSoundCategory, getSplashSound, getStandingEyeHeight, getSwimSound, getTargetingMargin, getTeamColorValue, getTeleportTarget, getTrackedPosition, getType, getUuid, getUuidAsString, getVehicle, getVelocity, getVelocityAffectingPos, getWidth, getX, getY, getYaw, getZ, handleAttack, handleFallDamage, handleStatus, hasCustomName, hashCode, hasNetherPortalCooldown, hasNoGravity, hasPassenger, hasPassengerDeep, hasPassengers, hasPassengerType, hasPermissionLevel, hasPlayerRider, hasVehicle, hasWings, interact, interactAt, isAlive, isAttackable, isCollidable, isConnectedThroughVehicle, isCustomNameVisible, isDescending, isFireImmune, isFreezing, isGlowing, isImmuneToExplosion, isInLava, isInRange, isInsideWall, isInsideWaterOrBubbleColumn, isInSneakingPose, isInSwimmingPose, isInvisible, isInvisibleTo, isInvulnerable, isInvulnerableTo, isLiving, isLogicalSideForUpdatingMovement, isOnFire, isOnGround, isPartOf, isPlayer, isRemoved, isSilent, isSneaking, isSneaky, isSpectator, isSprinting, isSubmergedIn, isSubmergedInWater, isSwimming, isTeammate, isTeamPlayer, isTouchingWater, isTouchingWaterOrRain, isWet, kill, lookAt, method_29241, method_29919, method_30330, method_30951, method_31744, method_32318, method_32877, method_33332, method_33567, method_33568, method_33569, method_33571, method_33573, method_33574, method_33575, move, moveToWorld, occludeVibrationSignals, offsetX, offsetZ, onBlockCollision, onBubbleColumnCollision, onBubbleColumnSurfaceCollision, onKilledOther, onPassengerLookAround, onPlayerCollision, onSpawnPacket, onStartedTrackingBy, onStoppedTrackingBy, onStruckByLightning, onSwimmingStart, onTrackedDataSet, playFlySound, playSound, playStepSound, playSwimSound, populateCrashReport, pushOutOfBlocks, raycast, refreshPosition, refreshPositionAfterTeleport, refreshPositionAfterTeleport, refreshPositionAndAngles, refreshPositionAndAngles, remove, removeAllPassengers, removeFromDimension, removePassenger, removeScoreboardTag, requestTeleport, resetNetherPortalCooldown, resetPosition, saveSelfToTag, saveToTag, scheduleVelocityUpdate, sendSystemMessage, setAir, setBoundingBox, setCustomName, setCustomNameVisible, setEntityId, setFireTicks, setFlag, setFrozenTicks, setGlowing, setHeadYaw, setInNetherPortal, setInPowderSnow, setInvisible, setInvulnerable, setNoGravity, setOnFire, setOnFireFor, setOnFireFromLava, setOnGround, setPos, setPose, setPosition, setRemoved, setRenderDistanceMultiplier, setRotation, setSilent, setSneaking, setSprinting, setSwimming, setUuid, setVelocity, setVelocity, setYaw, shouldBroadcastConsoleToOps, shouldLeaveSwimmingPose, shouldReceiveFeedback, shouldRender, shouldRender, shouldRenderName, shouldSave, shouldSetPositionOnLoad, shouldSpawnSprintingParticles, shouldTrackOutput, slowMovement, spawnSprintingParticles, squaredDistanceTo, squaredDistanceTo, squaredDistanceTo, squaredHorizontalLength, startRiding, startRiding, stopRiding, streamPassengers, streamPassengersRecursively, teleport, tickInVoid, tickNetherPortal, tickNetherPortalCooldown, tickRiding, toListTag, toListTag, toString, toTag, unsetRemoved, updateKilledAdvancementCriterion, updateMovementInFluid, updatePassengerPosition, updatePosition, updatePositionAndAngles, updateSwimming, updateTrackedHeadRotation, updateTrackedPosition, updateTrackedPosition, updateVelocity, updateWaterState, wouldPoseNotCollide
-
Field Details
-
DAMAGE_WOBBLE_TICKS
- Mappings:
Namespace Name Mixin selector official b
Lbja;b:Lvk;
intermediary field_7663
Lnet/minecraft/class_1688;field_7663:Lnet/minecraft/class_2940;
named DAMAGE_WOBBLE_TICKS
Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;DAMAGE_WOBBLE_TICKS:Lnet/minecraft/entity/data/TrackedData;
-
DAMAGE_WOBBLE_SIDE
- Mappings:
Namespace Name Mixin selector official c
Lbja;c:Lvk;
intermediary field_7668
Lnet/minecraft/class_1688;field_7668:Lnet/minecraft/class_2940;
named DAMAGE_WOBBLE_SIDE
Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;DAMAGE_WOBBLE_SIDE:Lnet/minecraft/entity/data/TrackedData;
-
DAMAGE_WOBBLE_STRENGTH
- Mappings:
Namespace Name Mixin selector official d
Lbja;d:Lvk;
intermediary field_7667
Lnet/minecraft/class_1688;field_7667:Lnet/minecraft/class_2940;
named DAMAGE_WOBBLE_STRENGTH
Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;DAMAGE_WOBBLE_STRENGTH:Lnet/minecraft/entity/data/TrackedData;
-
CUSTOM_BLOCK_ID
- Mappings:
Namespace Name Mixin selector official e
Lbja;e:Lvk;
intermediary field_7671
Lnet/minecraft/class_1688;field_7671:Lnet/minecraft/class_2940;
named CUSTOM_BLOCK_ID
Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;CUSTOM_BLOCK_ID:Lnet/minecraft/entity/data/TrackedData;
-
CUSTOM_BLOCK_OFFSET
- Mappings:
Namespace Name Mixin selector official f
Lbja;f:Lvk;
intermediary field_7661
Lnet/minecraft/class_1688;field_7661:Lnet/minecraft/class_2940;
named CUSTOM_BLOCK_OFFSET
Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;CUSTOM_BLOCK_OFFSET:Lnet/minecraft/entity/data/TrackedData;
-
CUSTOM_BLOCK_PRESENT
- Mappings:
Namespace Name Mixin selector official g
Lbja;g:Lvk;
intermediary field_7670
Lnet/minecraft/class_1688;field_7670:Lnet/minecraft/class_2940;
named CUSTOM_BLOCK_PRESENT
Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;CUSTOM_BLOCK_PRESENT:Lnet/minecraft/entity/data/TrackedData;
-
DISMOUNT_FREE_Y_SPACES_NEEDED
- Mappings:
Namespace Name Mixin selector official ae
Lbja;ae:Lcom/google/common/collect/ImmutableMap;
intermediary field_24464
Lnet/minecraft/class_1688;field_24464:Lcom/google/common/collect/ImmutableMap;
named DISMOUNT_FREE_Y_SPACES_NEEDED
Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;DISMOUNT_FREE_Y_SPACES_NEEDED:Lcom/google/common/collect/ImmutableMap;
-
ADJACENT_RAIL_POSITIONS_BY_SHAPE
private static final Map<RailShape,com.mojang.datafixers.util.Pair<Vec3i,Vec3i>> ADJACENT_RAIL_POSITIONS_BY_SHAPE- Mappings:
Namespace Name Mixin selector official ag
Lbja;ag:Ljava/util/Map;
intermediary field_7664
Lnet/minecraft/class_1688;field_7664:Ljava/util/Map;
named ADJACENT_RAIL_POSITIONS_BY_SHAPE
Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;ADJACENT_RAIL_POSITIONS_BY_SHAPE:Ljava/util/Map;
-
yawFlipped
private boolean yawFlipped- Mappings:
Namespace Name Mixin selector official af
Lbja;af:Z
intermediary field_7660
Lnet/minecraft/class_1688;field_7660:Z
named yawFlipped
Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;yawFlipped:Z
-
clientInterpolationSteps
private int clientInterpolationSteps- Mappings:
Namespace Name Mixin selector official ah
Lbja;ah:I
intermediary field_7669
Lnet/minecraft/class_1688;field_7669:I
named clientInterpolationSteps
Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;clientInterpolationSteps:I
-
clientX
private double clientX- Mappings:
Namespace Name Mixin selector official ai
Lbja;ai:D
intermediary field_7665
Lnet/minecraft/class_1688;field_7665:D
named clientX
Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;clientX:D
-
clientY
private double clientY- Mappings:
Namespace Name Mixin selector official aj
Lbja;aj:D
intermediary field_7666
Lnet/minecraft/class_1688;field_7666:D
named clientY
Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;clientY:D
-
clientZ
private double clientZ- Mappings:
Namespace Name Mixin selector official ak
Lbja;ak:D
intermediary field_7662
Lnet/minecraft/class_1688;field_7662:D
named clientZ
Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;clientZ:D
-
clientYaw
private double clientYaw- Mappings:
Namespace Name Mixin selector official al
Lbja;al:D
intermediary field_7659
Lnet/minecraft/class_1688;field_7659:D
named clientYaw
Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;clientYaw:D
-
clientPitch
private double clientPitch- Mappings:
Namespace Name Mixin selector official am
Lbja;am:D
intermediary field_7657
Lnet/minecraft/class_1688;field_7657:D
named clientPitch
Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;clientPitch:D
-
clientXVelocity
- Mappings:
Namespace Name Mixin selector official an
Lbja;an:D
intermediary field_7658
Lnet/minecraft/class_1688;field_7658:D
named clientXVelocity
Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;clientXVelocity:D
-
clientYVelocity
- Mappings:
Namespace Name Mixin selector official ao
Lbja;ao:D
intermediary field_7655
Lnet/minecraft/class_1688;field_7655:D
named clientYVelocity
Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;clientYVelocity:D
-
clientZVelocity
- Mappings:
Namespace Name Mixin selector official ap
Lbja;ap:D
intermediary field_7656
Lnet/minecraft/class_1688;field_7656:D
named clientZVelocity
Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;clientZVelocity:D
-
-
Constructor Details
-
AbstractMinecartEntity
- Mappings:
Namespace Name Mixin selector official <init>
Laqv;<init>(Laqz;Lbtv;)V
intermediary <init>
Lnet/minecraft/class_1297;<init>(Lnet/minecraft/class_1299;Lnet/minecraft/class_1937;)V
named <init>
Lnet/minecraft/entity/Entity;<init>(Lnet/minecraft/entity/EntityType;Lnet/minecraft/world/World;)V
-
AbstractMinecartEntity
- Mappings:
Namespace Name Mixin selector official <init>
Lbja;<init>(Laqz;Lbtv;DDD)V
intermediary <init>
Lnet/minecraft/class_1688;<init>(Lnet/minecraft/class_1299;Lnet/minecraft/class_1937;DDD)V
named <init>
Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;<init>(Lnet/minecraft/entity/EntityType;Lnet/minecraft/world/World;DDD)V
-
-
Method Details
-
create
public static AbstractMinecartEntity create(World world, double x, double y, double z, AbstractMinecartEntity.Type type)- Mappings:
Namespace Name Mixin selector official a
Lbja;a(Lbtv;DDDLbja$a;)Lbja;
intermediary method_7523
Lnet/minecraft/class_1688;method_7523(Lnet/minecraft/class_1937;DDDLnet/minecraft/class_1688$class_1689;)Lnet/minecraft/class_1688;
named create
Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;create(Lnet/minecraft/world/World;DDDLnet/minecraft/entity/vehicle/AbstractMinecartEntity$Type;)Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;
-
method_33570
- Overrides:
method_33570
in classEntity
- Mappings:
Namespace Name Mixin selector official aE
Laqv;aE()Laqv$b;
intermediary method_33570
Lnet/minecraft/class_1297;method_33570()Lnet/minecraft/class_1297$class_5799;
named method_33570
Lnet/minecraft/entity/Entity;method_33570()Lnet/minecraft/entity/Entity$class_5799;
-
initDataTracker
protected void initDataTracker()- Specified by:
initDataTracker
in classEntity
- Mappings:
Namespace Name Mixin selector official e
Laqv;e()V
intermediary method_5693
Lnet/minecraft/class_1297;method_5693()V
named initDataTracker
Lnet/minecraft/entity/Entity;initDataTracker()V
-
collidesWith
- Overrides:
collidesWith
in classEntity
- Mappings:
Namespace Name Mixin selector official j
Laqv;j(Laqv;)Z
intermediary method_30949
Lnet/minecraft/class_1297;method_30949(Lnet/minecraft/class_1297;)Z
named collidesWith
Lnet/minecraft/entity/Entity;collidesWith(Lnet/minecraft/entity/Entity;)Z
-
isPushable
public boolean isPushable()- Overrides:
isPushable
in classEntity
- Mappings:
Namespace Name Mixin selector official aZ
Laqv;aZ()Z
intermediary method_5810
Lnet/minecraft/class_1297;method_5810()Z
named isPushable
Lnet/minecraft/entity/Entity;isPushable()Z
-
method_30633
- Overrides:
method_30633
in classEntity
- Mappings:
Namespace Name Mixin selector official a
Laqv;a(Lgc$a;Li$a;)Ldiu;
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;
named method_30633
Lnet/minecraft/entity/Entity;method_30633(Lnet/minecraft/util/math/Direction$Axis;Lnet/minecraft/class_5459$class_5460;)Lnet/minecraft/util/math/Vec3d;
-
getMountedHeightOffset
public double getMountedHeightOffset()- Overrides:
getMountedHeightOffset
in classEntity
- Mappings:
Namespace Name Mixin selector official bh
Laqv;bh()D
intermediary method_5621
Lnet/minecraft/class_1297;method_5621()D
named getMountedHeightOffset
Lnet/minecraft/entity/Entity;getMountedHeightOffset()D
-
updatePassengerForDismount
- Overrides:
updatePassengerForDismount
in classEntity
- Mappings:
Namespace Name Mixin selector official b
Laqv;b(Lari;)Ldiu;
intermediary method_24829
Lnet/minecraft/class_1297;method_24829(Lnet/minecraft/class_1309;)Lnet/minecraft/class_243;
named updatePassengerForDismount
Lnet/minecraft/entity/Entity;updatePassengerForDismount(Lnet/minecraft/entity/LivingEntity;)Lnet/minecraft/util/math/Vec3d;
-
damage
-
getVelocityMultiplier
protected float getVelocityMultiplier()- Overrides:
getVelocityMultiplier
in classEntity
- Mappings:
Namespace Name Mixin selector official at
Laqv;at()F
intermediary method_23326
Lnet/minecraft/class_1297;method_23326()F
named getVelocityMultiplier
Lnet/minecraft/entity/Entity;getVelocityMultiplier()F
-
dropItems
- Mappings:
Namespace Name Mixin selector official a
Lbja;a(Laqf;)V
intermediary method_7516
Lnet/minecraft/class_1688;method_7516(Lnet/minecraft/class_1282;)V
named dropItems
Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;dropItems(Lnet/minecraft/entity/damage/DamageSource;)V
-
animateDamage
- Overrides:
animateDamage
in classEntity
- Mappings:
Namespace Name Mixin selector official br
Laqv;br()V
intermediary method_5879
Lnet/minecraft/class_1297;method_5879()V
named animateDamage
Lnet/minecraft/entity/Entity;animateDamage()V
-
collides
public boolean collides() -
getAdjacentRailPositionsByShape
private static com.mojang.datafixers.util.Pair<Vec3i,Vec3i> getAdjacentRailPositionsByShape(RailShape shape)- Mappings:
Namespace Name Mixin selector official a
Lbja;a(Lcix;)Lcom/mojang/datafixers/util/Pair;
intermediary method_22864
Lnet/minecraft/class_1688;method_22864(Lnet/minecraft/class_2768;)Lcom/mojang/datafixers/util/Pair;
named getAdjacentRailPositionsByShape
Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;getAdjacentRailPositionsByShape(Lnet/minecraft/block/enums/RailShape;)Lcom/mojang/datafixers/util/Pair;
-
getMovementDirection
- Overrides:
getMovementDirection
in classEntity
- Mappings:
Namespace Name Mixin selector official ck
Laqv;ck()Lgc;
intermediary method_5755
Lnet/minecraft/class_1297;method_5755()Lnet/minecraft/class_2350;
named getMovementDirection
Lnet/minecraft/entity/Entity;getMovementDirection()Lnet/minecraft/util/math/Direction;
-
tick
public void tick() -
getMaxOffRailSpeed
protected double getMaxOffRailSpeed()- Mappings:
Namespace Name Mixin selector official g
Lbja;g()D
intermediary method_7504
Lnet/minecraft/class_1688;method_7504()D
named getMaxOffRailSpeed
Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;getMaxOffRailSpeed()D
-
onActivatorRail
public void onActivatorRail(int x, int y, int z, boolean powered)- Mappings:
Namespace Name Mixin selector official a
Lbja;a(IIIZ)V
intermediary method_7506
Lnet/minecraft/class_1688;method_7506(IIIZ)V
named onActivatorRail
Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;onActivatorRail(IIIZ)V
-
moveOffRail
protected void moveOffRail()- Mappings:
Namespace Name Mixin selector official h
Lbja;h()V
intermediary method_7512
Lnet/minecraft/class_1688;method_7512()V
named moveOffRail
Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;moveOffRail()V
-
moveOnRail
- Mappings:
Namespace Name Mixin selector official c
Lbja;c(Lfx;Lcht;)V
intermediary method_7513
Lnet/minecraft/class_1688;method_7513(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)V
named moveOnRail
Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;moveOnRail(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V
-
willHitBlockAt
- Mappings:
Namespace Name Mixin selector official a
Lbja;a(Lfx;)Z
intermediary method_18803
Lnet/minecraft/class_1688;method_18803(Lnet/minecraft/class_2338;)Z
named willHitBlockAt
Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;willHitBlockAt(Lnet/minecraft/util/math/BlockPos;)Z
-
applySlowdown
protected void applySlowdown()- Mappings:
Namespace Name Mixin selector official i
Lbja;i()V
intermediary method_7525
Lnet/minecraft/class_1688;method_7525()V
named applySlowdown
Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;applySlowdown()V
-
snapPositionToRailWithOffset
@Environment(CLIENT) @Nullable public 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 a
Lbja;a(DDDD)Ldiu;
intermediary method_7505
Lnet/minecraft/class_1688;method_7505(DDDD)Lnet/minecraft/class_243;
named snapPositionToRailWithOffset
Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;snapPositionToRailWithOffset(DDDD)Lnet/minecraft/util/math/Vec3d;
-
snapPositionToRail
- Mappings:
Namespace Name Mixin selector official p
Lbja;p(DDD)Ldiu;
intermediary method_7508
Lnet/minecraft/class_1688;method_7508(DDD)Lnet/minecraft/class_243;
named snapPositionToRail
Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;snapPositionToRail(DDD)Lnet/minecraft/util/math/Vec3d;
-
getVisibilityBoundingBox
- Overrides:
getVisibilityBoundingBox
in classEntity
- Mappings:
Namespace Name Mixin selector official cn
Laqv;cn()Ldip;
intermediary method_5830
Lnet/minecraft/class_1297;method_5830()Lnet/minecraft/class_238;
named getVisibilityBoundingBox
Lnet/minecraft/entity/Entity;getVisibilityBoundingBox()Lnet/minecraft/util/math/Box;
-
readCustomDataFromTag
- Specified by:
readCustomDataFromTag
in classEntity
- Mappings:
Namespace Name Mixin selector official a
Laqv;a(Lmq;)V
intermediary method_5749
Lnet/minecraft/class_1297;method_5749(Lnet/minecraft/class_2487;)V
named readCustomDataFromTag
Lnet/minecraft/entity/Entity;readCustomDataFromTag(Lnet/minecraft/nbt/CompoundTag;)V
-
writeCustomDataToTag
- Specified by:
writeCustomDataToTag
in classEntity
- Mappings:
Namespace Name Mixin selector official b
Laqv;b(Lmq;)V
intermediary method_5652
Lnet/minecraft/class_1297;method_5652(Lnet/minecraft/class_2487;)V
named writeCustomDataToTag
Lnet/minecraft/entity/Entity;writeCustomDataToTag(Lnet/minecraft/nbt/CompoundTag;)V
-
pushAwayFrom
- Overrides:
pushAwayFrom
in classEntity
- Mappings:
Namespace Name Mixin selector official i
Laqv;i(Laqv;)V
intermediary method_5697
Lnet/minecraft/class_1297;method_5697(Lnet/minecraft/class_1297;)V
named pushAwayFrom
Lnet/minecraft/entity/Entity;pushAwayFrom(Lnet/minecraft/entity/Entity;)V
-
updateTrackedPositionAndAngles
@Environment(CLIENT) public void updateTrackedPositionAndAngles(double x, double y, double z, float yaw, float pitch, int interpolationSteps, boolean interpolate)- Overrides:
updateTrackedPositionAndAngles
in classEntity
- Mappings:
Namespace Name Mixin selector official a
Laqv;a(DDDFFIZ)V
intermediary method_5759
Lnet/minecraft/class_1297;method_5759(DDDFFIZ)V
named updateTrackedPositionAndAngles
Lnet/minecraft/entity/Entity;updateTrackedPositionAndAngles(DDDFFIZ)V
-
setVelocityClient
- Overrides:
setVelocityClient
in classEntity
- Mappings:
Namespace Name Mixin selector official k
Laqv;k(DDD)V
intermediary method_5750
Lnet/minecraft/class_1297;method_5750(DDD)V
named setVelocityClient
Lnet/minecraft/entity/Entity;setVelocityClient(DDD)V
-
setDamageWobbleStrength
public void setDamageWobbleStrength(float damageWobbleStrength)- Mappings:
Namespace Name Mixin selector official a
Lbja;a(F)V
intermediary method_7520
Lnet/minecraft/class_1688;method_7520(F)V
named setDamageWobbleStrength
Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;setDamageWobbleStrength(F)V
-
getDamageWobbleStrength
public float getDamageWobbleStrength()- Mappings:
Namespace Name Mixin selector official k
Lbja;k()F
intermediary method_7521
Lnet/minecraft/class_1688;method_7521()F
named getDamageWobbleStrength
Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;getDamageWobbleStrength()F
-
setDamageWobbleTicks
public void setDamageWobbleTicks(int wobbleTicks)- Mappings:
Namespace Name Mixin selector official c
Lbja;c(I)V
intermediary method_7509
Lnet/minecraft/class_1688;method_7509(I)V
named setDamageWobbleTicks
Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;setDamageWobbleTicks(I)V
-
getDamageWobbleTicks
public int getDamageWobbleTicks()- Mappings:
Namespace Name Mixin selector official m
Lbja;m()I
intermediary method_7507
Lnet/minecraft/class_1688;method_7507()I
named getDamageWobbleTicks
Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;getDamageWobbleTicks()I
-
setDamageWobbleSide
public void setDamageWobbleSide(int wobbleSide)- Mappings:
Namespace Name Mixin selector official d
Lbja;d(I)V
intermediary method_7524
Lnet/minecraft/class_1688;method_7524(I)V
named setDamageWobbleSide
Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;setDamageWobbleSide(I)V
-
getDamageWobbleSide
public int getDamageWobbleSide()- Mappings:
Namespace Name Mixin selector official n
Lbja;n()I
intermediary method_7522
Lnet/minecraft/class_1688;method_7522()I
named getDamageWobbleSide
Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;getDamageWobbleSide()I
-
getMinecartType
- Mappings:
Namespace Name Mixin selector official o
Lbja;o()Lbja$a;
intermediary method_7518
Lnet/minecraft/class_1688;method_7518()Lnet/minecraft/class_1688$class_1689;
named getMinecartType
Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;getMinecartType()Lnet/minecraft/entity/vehicle/AbstractMinecartEntity$Type;
-
getContainedBlock
- Mappings:
Namespace Name Mixin selector official p
Lbja;p()Lcht;
intermediary method_7519
Lnet/minecraft/class_1688;method_7519()Lnet/minecraft/class_2680;
named getContainedBlock
Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;getContainedBlock()Lnet/minecraft/block/BlockState;
-
getDefaultContainedBlock
- Mappings:
Namespace Name Mixin selector official q
Lbja;q()Lcht;
intermediary method_7517
Lnet/minecraft/class_1688;method_7517()Lnet/minecraft/class_2680;
named getDefaultContainedBlock
Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;getDefaultContainedBlock()Lnet/minecraft/block/BlockState;
-
getBlockOffset
public int getBlockOffset()- Mappings:
Namespace Name Mixin selector official r
Lbja;r()I
intermediary method_7514
Lnet/minecraft/class_1688;method_7514()I
named getBlockOffset
Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;getBlockOffset()I
-
getDefaultBlockOffset
public int getDefaultBlockOffset()- Mappings:
Namespace Name Mixin selector official s
Lbja;s()I
intermediary method_7526
Lnet/minecraft/class_1688;method_7526()I
named getDefaultBlockOffset
Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;getDefaultBlockOffset()I
-
setCustomBlock
- Mappings:
Namespace Name Mixin selector official b
Lbja;b(Lcht;)V
intermediary method_7527
Lnet/minecraft/class_1688;method_7527(Lnet/minecraft/class_2680;)V
named setCustomBlock
Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;setCustomBlock(Lnet/minecraft/block/BlockState;)V
-
setCustomBlockOffset
public void setCustomBlockOffset(int offset)- Mappings:
Namespace Name Mixin selector official m
Lbja;m(I)V
intermediary method_7515
Lnet/minecraft/class_1688;method_7515(I)V
named setCustomBlockOffset
Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;setCustomBlockOffset(I)V
-
hasCustomBlock
public boolean hasCustomBlock()- Mappings:
Namespace Name Mixin selector official u
Lbja;u()Z
intermediary method_7510
Lnet/minecraft/class_1688;method_7510()Z
named hasCustomBlock
Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;hasCustomBlock()Z
-
setCustomBlockPresent
public void setCustomBlockPresent(boolean present)- Mappings:
Namespace Name Mixin selector official a
Lbja;a(Z)V
intermediary method_7511
Lnet/minecraft/class_1688;method_7511(Z)V
named setCustomBlockPresent
Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;setCustomBlockPresent(Z)V
-
createSpawnPacket
- Specified by:
createSpawnPacket
in classEntity
- Mappings:
Namespace Name Mixin selector official P
Laqv;P()Lpa;
intermediary method_18002
Lnet/minecraft/class_1297;method_18002()Lnet/minecraft/class_2596;
named createSpawnPacket
Lnet/minecraft/entity/Entity;createSpawnPacket()Lnet/minecraft/network/Packet;
-
getPickBlockStack
- Overrides:
getPickBlockStack
in classEntity
- Mappings:
Namespace Name Mixin selector official cY
Laqv;cY()Lbnv;
intermediary method_31480
Lnet/minecraft/class_1297;method_31480()Lnet/minecraft/class_1799;
named getPickBlockStack
Lnet/minecraft/entity/Entity;getPickBlockStack()Lnet/minecraft/item/ItemStack;
-