Class AbstractMinecartEntity
- All Implemented Interfaces:
- CommandOutput,- Nameable,- EntityLike
- Direct Known Subclasses:
- CommandBlockMinecartEntity,- FurnaceMinecartEntity,- MinecartEntity,- SpawnerMinecartEntity,- StorageMinecartEntity,- TntMinecartEntity
- Mappings:
- Namespace - Name - official - caf- intermediary - net/minecraft/class_1688- named - net/minecraft/entity/vehicle/AbstractMinecartEntity
- 
Nested Class SummaryNested ClassesNested classes/interfaces inherited from class net.minecraft.entity.EntityEntity.MoveEffect, Entity.PositionUpdater, Entity.RemovalReason
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate intprivate doubleprivate doubleprivate doubleprivate doubleprivate doubleprivate doubleprivate doubleprivate doubleprivate static final TrackedData<Integer>private static final TrackedData<Integer>private static final TrackedData<Boolean>private static final TrackedData<Integer>private static final TrackedData<Float>private static final TrackedData<Integer>private static final ImmutableMap<EntityPose,ImmutableList<Integer>> private booleanprotected static final floatprivate booleanFields inherited from class net.minecraft.entity.Entityage, 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.CommandOutputDUMMY
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedAbstractMinecartEntity(EntityType<?> type, World world) protectedAbstractMinecartEntity(EntityType<?> type, World world, double x, double y, double z) 
- 
Method SummaryModifier 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(World world, double x, double y, double z, AbstractMinecartEntity.Type type) booleandamage(DamageSource source, float amount) Applies a damage to this entity.voiddropItems(DamageSource damageSource) intintfloatintint(package private) abstract ItemgetItem()protected doubleabstract AbstractMinecartEntity.Typedoubleprotected Entity.MoveEffectReturns the possible effect(s) of an entity moving.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) voidsetDamageWobbleSide(int wobbleSide) voidsetDamageWobbleStrength(float damageWobbleStrength) voidsetDamageWobbleTicks(int wobbleTicks) 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, boolean interpolate) private booleanwillHitBlockAt(BlockPos pos) protected voidWrites custom data tonbt.Methods inherited from class net.minecraft.entity.EntityaddAirTravelEffects, addCommandTag, addFlapEffects, addPassenger, addVelocity, addVelocity, adjustMovementForCollisions, adjustMovementForPiston, adjustMovementForSneaking, applyDamageEffects, applyMirror, applyRotation, attemptTickInVoid, baseTick, bypassesLandingEffects, bypassesSteppingEffects, calculateBoundingBox, calculateBoundsForPose, 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, getEntityName, getEntityWorld, getEyeHeight, getEyeHeight, getEyePos, getEyeY, getFireTicks, getFirstPassenger, getFlag, getFluidHeight, getFreezingScale, getFrozenTicks, getHandItems, getHandPosOffset, getHeadYaw, getHeight, getHeightOffset, getHighSpeedSplashSound, getHorizontalFacing, getHoverEvent, getId, getItemsEquipped, getJumpVelocityMultiplier, getLandingBlockState, getLandingPos, getLeashOffset, getLeashOffset, getLeashPos, getLerpedPos, getMaxAir, getMaxNetherPortalTime, getMinFreezeDamageTicks, getName, getNameLabelHeight, getOppositeRotationVector, getOppositeRotationVector, getParticleX, getParticleZ, getPassengerDismountOffset, getPassengerList, getPassengersDeep, getPermissionLevel, getPistonBehavior, getPitch, getPitch, getPortalCooldown, getPortalRect, getPos, getPose, getPosWithYOffset, getRandomBodyY, 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, getTeleportTarget, getTrackedPosition, getType, 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, 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, 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, removeFromDimension, removePassenger, removeScoreboardTag, 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, 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, wouldPoseNotCollide, writeNbtMethods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.server.command.CommandOutputcannotBeSilenced
- 
Field Details- 
DAMAGE_WOBBLE_TICKS- Mappings:
- Namespace - Name - Mixin selector - official - c- Lcaf;c:Laby;- 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 - d- Lcaf;d:Laby;- 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 - e- Lcaf;e:Laby;- 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 - f- Lcaf;f:Laby;- 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 - g- Lcaf;g:Laby;- 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 - h- Lcaf;h:Laby;- 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 - i- Lcaf;i: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;
 
- 
VELOCITY_SLOWDOWN_MULTIPLIERprotected static final float VELOCITY_SLOWDOWN_MULTIPLIER- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - b- Lcaf;b:F- intermediary - field_30694- Lnet/minecraft/class_1688;field_30694:F- named - VELOCITY_SLOWDOWN_MULTIPLIER- Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;VELOCITY_SLOWDOWN_MULTIPLIER:F
 
- 
ADJACENT_RAIL_POSITIONS_BY_SHAPEprivate static final Map<RailShape,com.mojang.datafixers.util.Pair<Vec3i, ADJACENT_RAIL_POSITIONS_BY_SHAPEVec3i>> - Mappings:
- Namespace - Name - Mixin selector - official - l- Lcaf;l: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;
 
- 
yawFlippedprivate boolean yawFlipped- Mappings:
- Namespace - Name - Mixin selector - official - j- Lcaf;j:Z- intermediary - field_7660- Lnet/minecraft/class_1688;field_7660:Z- named - yawFlipped- Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;yawFlipped:Z
 
- 
onRailprivate boolean onRail- Mappings:
- Namespace - Name - Mixin selector - official - k- Lcaf;k:Z- intermediary - field_44917- Lnet/minecraft/class_1688;field_44917:Z- named - onRail- Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;onRail:Z
 
- 
clientInterpolationStepsprivate int clientInterpolationSteps- Mappings:
- Namespace - Name - Mixin selector - official - m- Lcaf;m:I- intermediary - field_7669- Lnet/minecraft/class_1688;field_7669:I- named - clientInterpolationSteps- Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;clientInterpolationSteps:I
 
- 
clientXprivate double clientX- Mappings:
- Namespace - Name - Mixin selector - official - n- Lcaf;n:D- intermediary - field_7665- Lnet/minecraft/class_1688;field_7665:D- named - clientX- Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;clientX:D
 
- 
clientYprivate double clientY- Mappings:
- Namespace - Name - Mixin selector - official - o- Lcaf;o:D- intermediary - field_7666- Lnet/minecraft/class_1688;field_7666:D- named - clientY- Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;clientY:D
 
- 
clientZprivate double clientZ- Mappings:
- Namespace - Name - Mixin selector - official - p- Lcaf;p:D- intermediary - field_7662- Lnet/minecraft/class_1688;field_7662:D- named - clientZ- Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;clientZ:D
 
- 
clientYawprivate double clientYaw- Mappings:
- Namespace - Name - Mixin selector - official - q- Lcaf;q:D- intermediary - field_7659- Lnet/minecraft/class_1688;field_7659:D- named - clientYaw- Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;clientYaw:D
 
- 
clientPitchprivate double clientPitch- Mappings:
- Namespace - Name - Mixin selector - official - r- Lcaf;r:D- intermediary - field_7657- Lnet/minecraft/class_1688;field_7657:D- named - clientPitch- Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;clientPitch:D
 
- 
clientXVelocityprivate double clientXVelocity- Mappings:
- Namespace - Name - Mixin selector - official - s- Lcaf;s:D- intermediary - field_7658- Lnet/minecraft/class_1688;field_7658:D- named - clientXVelocity- Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;clientXVelocity:D
 
- 
clientYVelocityprivate double clientYVelocity- Mappings:
- Namespace - Name - Mixin selector - official - t- Lcaf;t:D- intermediary - field_7655- Lnet/minecraft/class_1688;field_7655:D- named - clientYVelocity- Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;clientYVelocity:D
 
- 
clientZVelocityprivate double clientZVelocity- Mappings:
- Namespace - Name - Mixin selector - official - u- Lcaf;u: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>- Lbfj;<init>(Lbfn;Lcmm;)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>- Lcaf;<init>(Lbfn;Lcmm;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- 
createpublic static AbstractMinecartEntity create(World world, double x, double y, double z, AbstractMinecartEntity.Type type) - Mappings:
- Namespace - Name - Mixin selector - official - a- Lcaf;a(Lcmm;DDDLcaf$a;)Lcaf;- 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;
 
- 
getMoveEffectReturns the possible effect(s) of an entity moving.- Overrides:
- getMoveEffectin class- Entity
- Mappings:
- Namespace - Name - Mixin selector - official - aS- Lbfj;aS()Lbfj$b;- intermediary - method_33570- Lnet/minecraft/class_1297;method_33570()Lnet/minecraft/class_1297$class_5799;- named - getMoveEffect- Lnet/minecraft/entity/Entity;getMoveEffect()Lnet/minecraft/entity/Entity$MoveEffect;
 
- 
initDataTrackerprotected void initDataTracker()Initializes data tracker.- Specified by:
- initDataTrackerin class- Entity
- Mappings:
- Namespace - Name - Mixin selector - official - a_- Lbfj;a_()V- intermediary - method_5693- Lnet/minecraft/class_1297;method_5693()V- named - initDataTracker- Lnet/minecraft/entity/Entity;initDataTracker()V
 
- 
collidesWithReturns whether this entity cannot occupy the same space withother.This returns falseifotheris connected through vehicles.- Overrides:
- collidesWithin class- Entity
- Returns:
- whether this entity cannot occupy the same space with other
- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - h- Lbfj;h(Lbfj;)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
 
- 
isPushablepublic boolean isPushable()Returns whether the entity can be pushed by other entities.- Overrides:
- isPushablein class- Entity
- Returns:
- whether the entity can be pushed by other entities
- Mappings:
- Namespace - Name - Mixin selector - official - bp- Lbfj;bp()Z- intermediary - method_5810- Lnet/minecraft/class_1297;method_5810()Z- named - isPushable- Lnet/minecraft/entity/Entity;isPushable()Z
 
- 
positionInPortalReturns the entity's position in the portal after teleportation.- Overrides:
- positionInPortalin class- Entity
- Returns:
- the entity's position in the portal after teleportation
- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - a- Lbfj;a(Lha$a;Ll$a;)Leei;- 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 - positionInPortal- Lnet/minecraft/entity/Entity;positionInPortal(Lnet/minecraft/util/math/Direction$Axis;Lnet/minecraft/world/BlockLocating$Rectangle;)Lnet/minecraft/util/math/Vec3d;
 
- 
getMountedHeightOffsetpublic double getMountedHeightOffset()- Overrides:
- getMountedHeightOffsetin class- Entity
- Mappings:
- Namespace - Name - Mixin selector - official - bx- Lbfj;bx()D- intermediary - method_5621- Lnet/minecraft/class_1297;method_5621()D- named - getMountedHeightOffset- Lnet/minecraft/entity/Entity;getMountedHeightOffset()D
 
- 
updatePassengerForDismountReturns 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 class- Entity
- Returns:
- the position of the dismounted passenger
- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - b- Lbfj;b(Lbfz;)Leei;- 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;
 
- 
damageApplies a damage to this entity. The exact implementation differs between subclasses.LivingEntityhas health value, and damaging the entity decreases it. This also handles shields, extra damage to helmets for falling blocks, setting the attacker, playing hurt sound, etc.Some entities like ItemEntityalso have health value, which the overridden method decrements. There also exist several entities, likeEndCrystalEntity, where any damage discards the entity (perhaps with an explosion).If this is overridden, it must check the result of Entity.isInvulnerableTo(net.minecraft.entity.damage.DamageSource)and return early.- Overrides:
- damagein class- Entity
- Returns:
- whether the entity was actually damaged
- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - a- Lbfj;a(Lben;F)Z- intermediary - method_5643- Lnet/minecraft/class_1297;method_5643(Lnet/minecraft/class_1282;F)Z- named - damage- Lnet/minecraft/entity/Entity;damage(Lnet/minecraft/entity/damage/DamageSource;F)Z
 
- 
getVelocityMultiplierprotected float getVelocityMultiplier()- Overrides:
- getVelocityMultiplierin class- Entity
- Mappings:
- Namespace - Name - Mixin selector - official - aH- Lbfj;aH()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- Lcaf;a(Lben;)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
 
- 
getItem- Mappings:
- Namespace - Name - Mixin selector - official - j- Lcaf;j()Lcfu;- intermediary - method_42670- Lnet/minecraft/class_1688;method_42670()Lnet/minecraft/class_1792;- named - getItem- Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;getItem()Lnet/minecraft/item/Item;
 
- 
animateDamagepublic void animateDamage(float yaw) Called on the client to animate the entity's damage (the wobble).- Overrides:
- animateDamagein class- Entity
- Mappings:
- Namespace - Name - Mixin selector - official - m- Lbfj;m(F)V- intermediary - method_5879- Lnet/minecraft/class_1297;method_5879(F)V- named - animateDamage- Lnet/minecraft/entity/Entity;animateDamage(F)V
 
- 
canHitpublic boolean canHit()Returns whether the entity can be hit with a projectile or be targeted by the player crosshair.- Overrides:
- canHitin class- Entity
- Returns:
- whether the entity can be hit with a projectile or be targeted by the player crosshair
- Mappings:
- Namespace - Name - Mixin selector - official - bo- Lbfj;bo()Z- intermediary - method_5863- Lnet/minecraft/class_1297;method_5863()Z- named - canHit- Lnet/minecraft/entity/Entity;canHit()Z
 
- 
getAdjacentRailPositionsByShapeprivate static com.mojang.datafixers.util.Pair<Vec3i,Vec3i> getAdjacentRailPositionsByShape(RailShape shape) - Mappings:
- Namespace - Name - Mixin selector - official - a- Lcaf;a(Lddf;)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:
- getMovementDirectionin class- Entity
- Mappings:
- Namespace - Name - Mixin selector - official - cC- Lbfj;cC()Lha;- 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;
 
- 
tickpublic void tick()Ticks this entity.
- 
getMaxSpeedprotected double getMaxSpeed()- Mappings:
- Namespace - Name - Mixin selector - official - k- Lcaf;k()D- intermediary - method_7504- Lnet/minecraft/class_1688;method_7504()D- named - getMaxSpeed- Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;getMaxSpeed()D
 
- 
onActivatorRailpublic void onActivatorRail(int x, int y, int z, boolean powered) - Mappings:
- Namespace - Name - Mixin selector - official - a- Lcaf;a(IIIZ)V- intermediary - method_7506- Lnet/minecraft/class_1688;method_7506(IIIZ)V- named - onActivatorRail- Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;onActivatorRail(IIIZ)V
 
- 
moveOffRailprotected void moveOffRail()- Mappings:
- Namespace - Name - Mixin selector - official - o- Lcaf;o()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- Lcaf;c(Lgu;Ldcb;)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
 
- 
isOnRailpublic boolean isOnRail()
- 
willHitBlockAt- Mappings:
- Namespace - Name - Mixin selector - official - a- Lcaf;a(Lgu;)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
 
- 
applySlowdownprotected void applySlowdown()- Mappings:
- Namespace - Name - Mixin selector - official - p- Lcaf;p()V- intermediary - method_7525- Lnet/minecraft/class_1688;method_7525()V- named - applySlowdown- Lnet/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 - a- Lcaf;a(DDDD)Leei;- 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 - q- Lcaf;q(DDD)Leei;- 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:
- getVisibilityBoundingBoxin class- Entity
- Mappings:
- Namespace - Name - Mixin selector - official - j_- Lbfj;j_()Leed;- 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;
 
- 
readCustomDataFromNbtReads custom data fromnbt. Subclasses has 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 class- Entity
- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - a- Lbfj;a(Lqr;)V- intermediary - method_5749- Lnet/minecraft/class_1297;method_5749(Lnet/minecraft/class_2487;)V- named - readCustomDataFromNbt- Lnet/minecraft/entity/Entity;readCustomDataFromNbt(Lnet/minecraft/nbt/NbtCompound;)V
 
- 
writeCustomDataToNbtWrites custom data tonbt. Subclasses has 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 class- Entity
- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - b- Lbfj;b(Lqr;)V- intermediary - method_5652- Lnet/minecraft/class_1297;method_5652(Lnet/minecraft/class_2487;)V- named - writeCustomDataToNbt- Lnet/minecraft/entity/Entity;writeCustomDataToNbt(Lnet/minecraft/nbt/NbtCompound;)V
 
- 
pushAwayFrom- Overrides:
- pushAwayFromin class- Entity
- Mappings:
- Namespace - Name - Mixin selector - official - g- Lbfj;g(Lbfj;)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
 
- 
updateTrackedPositionAndAnglespublic void updateTrackedPositionAndAngles(double x, double y, double z, float yaw, float pitch, int interpolationSteps, boolean interpolate) - Overrides:
- updateTrackedPositionAndAnglesin class- Entity
- Mappings:
- Namespace - Name - Mixin selector - official - a- Lbfj;a(DDDFFIZ)V- intermediary - method_5759- Lnet/minecraft/class_1297;method_5759(DDDFFIZ)V- named - updateTrackedPositionAndAngles- Lnet/minecraft/entity/Entity;updateTrackedPositionAndAngles(DDDFFIZ)V
 
- 
setVelocityClientpublic void setVelocityClient(double x, double y, double z) - Overrides:
- setVelocityClientin class- Entity
- Mappings:
- Namespace - Name - Mixin selector - official - l- Lbfj;l(DDD)V- intermediary - method_5750- Lnet/minecraft/class_1297;method_5750(DDD)V- named - setVelocityClient- Lnet/minecraft/entity/Entity;setVelocityClient(DDD)V
 
- 
setDamageWobbleStrengthpublic void setDamageWobbleStrength(float damageWobbleStrength) - Mappings:
- Namespace - Name - Mixin selector - official - a- Lcaf;a(F)V- intermediary - method_7520- Lnet/minecraft/class_1688;method_7520(F)V- named - setDamageWobbleStrength- Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;setDamageWobbleStrength(F)V
 
- 
getDamageWobbleStrengthpublic float getDamageWobbleStrength()- Mappings:
- Namespace - Name - Mixin selector - official - q- Lcaf;q()F- intermediary - method_7521- Lnet/minecraft/class_1688;method_7521()F- named - getDamageWobbleStrength- Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;getDamageWobbleStrength()F
 
- 
setDamageWobbleTickspublic void setDamageWobbleTicks(int wobbleTicks) - Mappings:
- Namespace - Name - Mixin selector - official - c- Lcaf;c(I)V- intermediary - method_7509- Lnet/minecraft/class_1688;method_7509(I)V- named - setDamageWobbleTicks- Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;setDamageWobbleTicks(I)V
 
- 
getDamageWobbleTickspublic int getDamageWobbleTicks()- Mappings:
- Namespace - Name - Mixin selector - official - r- Lcaf;r()I- intermediary - method_7507- Lnet/minecraft/class_1688;method_7507()I- named - getDamageWobbleTicks- Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;getDamageWobbleTicks()I
 
- 
setDamageWobbleSidepublic void setDamageWobbleSide(int wobbleSide) - Mappings:
- Namespace - Name - Mixin selector - official - d- Lcaf;d(I)V- intermediary - method_7524- Lnet/minecraft/class_1688;method_7524(I)V- named - setDamageWobbleSide- Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;setDamageWobbleSide(I)V
 
- 
getDamageWobbleSidepublic int getDamageWobbleSide()- Mappings:
- Namespace - Name - Mixin selector - official - s- Lcaf;s()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 - t- Lcaf;t()Lcaf$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 - v- Lcaf;v()Ldcb;- 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 - w- Lcaf;w()Ldcb;- 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;
 
- 
getBlockOffsetpublic int getBlockOffset()- Mappings:
- Namespace - Name - Mixin selector - official - x- Lcaf;x()I- intermediary - method_7514- Lnet/minecraft/class_1688;method_7514()I- named - getBlockOffset- Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;getBlockOffset()I
 
- 
getDefaultBlockOffsetpublic int getDefaultBlockOffset()- Mappings:
- Namespace - Name - Mixin selector - official - y- Lcaf;y()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 - c- Lcaf;c(Ldcb;)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
 
- 
setCustomBlockOffsetpublic void setCustomBlockOffset(int offset) - Mappings:
- Namespace - Name - Mixin selector - official - m- Lcaf;m(I)V- intermediary - method_7515- Lnet/minecraft/class_1688;method_7515(I)V- named - setCustomBlockOffset- Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;setCustomBlockOffset(I)V
 
- 
hasCustomBlockpublic boolean hasCustomBlock()- Mappings:
- Namespace - Name - Mixin selector - official - z- Lcaf;z()Z- intermediary - method_7510- Lnet/minecraft/class_1688;method_7510()Z- named - hasCustomBlock- Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;hasCustomBlock()Z
 
- 
setCustomBlockPresentpublic void setCustomBlockPresent(boolean present) - Mappings:
- Namespace - Name - Mixin selector - official - a- Lcaf;a(Z)V- intermediary - method_7511- Lnet/minecraft/class_1688;method_7511(Z)V- named - setCustomBlockPresent- Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;setCustomBlockPresent(Z)V
 
- 
getPickBlockStackReturns 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 class- Entity
- Returns:
- the stack for creative "pick block" functionality, or nullif there is none
- Mappings:
- Namespace - Name - Mixin selector - official - dv- Lbfj;dv()Lcfz;- intermediary - method_31480- Lnet/minecraft/class_1297;method_31480()Lnet/minecraft/class_1799;- named - getPickBlockStack- Lnet/minecraft/entity/Entity;getPickBlockStack()Lnet/minecraft/item/ItemStack;
 
 
-