net.minecraft.entity.vehicle

public abstract class AbstractMinecartEntity

extends VehicleEntity

All mapped superinterfaces:

Nameable, EntityLike, UniquelyIdentifiable, ScoreHolder, DataTracked, ComponentsAccess, HeldItemContext, StackReferenceGetter, DebugTrackable, EntryConvertible

net.minecraft.world.entity.vehicle.minecart.AbstractMinecart
net.minecraft.class_1688
net.minecraft.entity.vehicle.AbstractMinecartEntity

Field summary

Modifier and TypeField
private static final Vec3d
LOWERED_PASSENGER_ATTACHMENT
field_47822
VILLAGER_PASSENGER_ATTACHMENT_POS
private static final TrackedData<Optional<BlockState>>
DATA_ID_CUSTOM_DISPLAY_BLOCK
field_7671
CUSTOM_BLOCK_STATE
private static final TrackedData<Integer>
DATA_ID_DISPLAY_OFFSET
field_7661
BLOCK_OFFSET
private static final com.google.common.collect.ImmutableMap<EntityPose, com.google.common.collect.ImmutableList<Integer>>
POSE_DISMOUNT_HEIGHTS
field_24464
DISMOUNT_FREE_Y_SPACES_NEEDED
protected static final float
WATER_SLOWDOWN_FACTOR
field_30694
VELOCITY_SLOWDOWN_MULTIPLIER
private static final boolean
DEFAULT_FLIPPED_ROTATION
field_57749
DEFAULT_YAW_FLIPPED
private boolean
onRails
field_44917
onRail
private boolean
flipped
field_7660
yawFlipped
private final MinecartController
behavior
field_52517
controller
private static final Map<RailShape, com.mojang.datafixers.util.Pair<Vec3i, Vec3i>>
EXITS
field_7664
ADJACENT_RAIL_POSITIONS_BY_SHAPE

Constructor summary

ModifierConstructor
protected (EntityType<?> type, World level)
protected (EntityType<?> type, World world, double x, double y, double z)

Method summary

Modifier and TypeMethod
public void
setInitialPos(double x, double y, double z)
method_64275(double arg0, double arg1, double arg2)
initPosition(double x, double y, double z)
public static <T extends AbstractMinecartEntity> T
createMinecart(Level level, double x, double y, double z, EntityType<T> type, EntitySpawnReason reason, ItemStack itemStack, Player player)
method_7523(class_1937 arg0, double arg1, double arg2, double arg3, class_1299<T> arg4, class_3730 arg5, class_1799 arg6, class_1657 arg7)
create(World world, double x, double y, double z, EntityType<T> type, SpawnReason reason, ItemStack stack, PlayerEntity player)
public MinecartController
getBehavior()
method_61569()
getController()
protected Entity$MoveEffect
getMovementEmission()
method_33570()
getMoveEffect()
protected void
defineSynchedData(SynchedEntityData$Builder entityData)
method_5693(class_2945$class_9222 arg0)
initDataTracker(DataTracker$Builder arg0)
public boolean
canCollideWith(Entity entity)
method_30949(class_1297 arg0)
collidesWith(Entity arg0)
public boolean
isPushable()
method_5810()
isPushable()
public Vec3d
getRelativePortalPosition(Direction$Axis axis, BlockUtil$FoundRectangle portalArea)
method_30633(class_2350$class_2351 arg0, class_5459$class_5460 arg1)
positionInPortal(Direction$Axis arg0, BlockLocating$Rectangle arg1)
protected Vec3d
getPassengerAttachmentPoint(Entity passenger, EntityDimensions dimensions, float scale)
method_52533(class_1297 arg0, class_4048 arg1, float arg2)
getPassengerAttachmentPos(Entity arg0, EntityDimensions arg1, float arg2)
public Vec3d
getDismountLocationForPassenger(LivingEntity passenger)
method_24829(class_1309 arg0)
updatePassengerForDismount(LivingEntity arg0)
protected float
getBlockSpeedFactor()
method_23326()
getVelocityMultiplier()
public void
animateHurt(float yaw)
method_5879(float arg0)
animateDamage(float arg0)
public boolean
isPickable()
method_5863()
canHit()
public static com.mojang.datafixers.util.Pair<Vec3i, Vec3i>
exits(RailShape shape)
method_22864(class_2768 arg0)
getAdjacentRailPositionsByShape(RailShape shape)
public Direction
getMotionDirection()
method_5755()
getMovementDirection()
protected double
getDefaultGravity()
method_7490()
getGravity()
public void
tick()
method_5773()
tick()
public boolean
isFirstTick()
method_62824()
isFirstUpdate()
public BlockPos
getCurrentBlockPosOrRailBelow()
method_62825()
getRailOrMinecartPos()
protected double
getMaxSpeed(ServerLevel level)
method_7504(class_3218 arg0)
getMaxSpeed(ServerWorld world)
public void
activateMinecart(ServerLevel level, int xt, int yt, int zt, boolean state)
method_7506(class_3218 arg0, int arg1, int arg2, int arg3, boolean arg4)
onActivatorRail(ServerWorld world, int x, int y, int z, boolean powered)
public void
applyGravity()
method_56990()
applyGravity()
public void
reapplyPosition()
method_23311()
refreshPosition()
public Vec3d
getKnownMovement()
method_60478()
getMovement()
protected PositionInterpolator
createInterpolationHandler()
method_66233()
createInterpolator()
public void
onInterpolationStart(InterpolationHandler interpolation)
method_1_7599(class_1_1451 arg0)
onLerp(PositionInterpolator arg0)
public void
recreateFromPacket(ClientboundAddEntityPacket packet)
method_31471(class_2604 arg0)
onSpawnPacket(EntitySpawnS2CPacket arg0)
public void
lerpMotion(Vec3 movement)
method_5750(class_243 arg0)
setVelocityClient(Vec3d arg0)
protected void
moveAlongTrack(ServerLevel level)
method_7513(class_3218 arg0)
moveOnRail(ServerWorld world)
protected void
comeOffTrack(ServerLevel level)
method_7512(class_3218 arg0)
moveOffRail(ServerWorld world)
protected float
getAirDrag()
method_1_5399()
getAirDragModifier()
protected double
makeStepAlongTrack(BlockPos pos, RailShape shape, double movementLeft)
method_61564(class_2338 arg0, class_2768 arg1, double arg2)
moveAlongTrack(BlockPos pos, RailShape shape, double remainingMovement)
public void
move(MoverType moverType, Vec3 delta)
method_5784(class_1313 arg0, class_243 arg1)
move(MovementType arg0, Vec3d arg1)
public void
applyEffectsFromBlocks()
method_61409()
tickBlockCollision()
public boolean
isOnRails()
method_52172()
isOnRail()
public void
setOnRails(boolean onRails)
method_61565(boolean arg0)
setOnRail(boolean onRail)
public boolean
isFlipped()
method_61571()
isYawFlipped()
public void
setFlipped(boolean flipped)
method_61567(boolean arg0)
setYawFlipped(boolean yawFlipped)
public Vec3d
getRedstoneDirection(BlockPos pos)
method_61563(class_2338 arg0)
getLaunchDirection(BlockPos railPos)
public boolean
isRedstoneConductor(BlockPos pos)
method_18803(class_2338 arg0)
willHitBlockAt(BlockPos pos)
protected Vec3d
applyNaturalSlowdown(Vec3 movement)
method_7525(class_243 arg0)
applySlowdown(Vec3d velocity)
protected void
readAdditionalSaveData(ValueInput input)
method_5749(class_11368 arg0)
readCustomData(ReadView arg0)
protected void
addAdditionalSaveData(ValueOutput output)
method_5652(class_11372 arg0)
writeCustomData(WriteView arg0)
public void
push(Entity entity)
method_5697(class_1297 arg0)
pushAwayFrom(Entity arg0)
private void
pushOtherMinecart(AbstractMinecart otherMinecart, double xa, double za)
method_64274(class_1688 arg0, double arg1, double arg2)
pushAwayFromMinecart(AbstractMinecartEntity entity, double xDiff, double zDiff)
public BlockState
getDisplayBlockState()
method_7519()
getContainedBlock()
private Optional<BlockState>
getCustomDisplayBlockState()
method_67672()
getCustomBlockState()
public BlockState
getDefaultDisplayBlockState()
method_7517()
getDefaultContainedBlock()
public int
getDisplayOffset()
method_7514()
getBlockOffset()
public int
getDefaultDisplayOffset()
method_7526()
getDefaultBlockOffset()
public void
setCustomDisplayBlockState(Optional<BlockState> state)
method_7527(Optional<class_2680> arg0)
setCustomBlockState(Optional<BlockState> customBlockState)
public void
setDisplayOffset(int offset)
method_7515(int arg0)
setBlockOffset(int offset)
public static boolean
useExperimentalMovement(Level level)
method_61566(class_1937 arg0)
areMinecartImprovementsEnabled(World world)
public abstract ItemStack
getPickResult()
method_31480()
getPickBlockStack()
public boolean
isRideable()
method_64272()
isRideable()
public boolean
isFurnace()
method_64273()
isSelfPropelling()
private static void
lambda$addAdditionalSaveData$0(ValueOutput arg0, BlockState arg1)
method_67673(class_11372 arg0, class_2680 arg1)
method_67673(WriteView arg0, BlockState state)
private static com.google.common.collect.ImmutableMap
lambda$static$0()
method_66327()
method_66327()
private VoxelShape
lambda$getDismountLocationForPassenger$1(BlockPos arg0)
method_30340(class_2338 arg0)
method_30340(BlockPos pos)
private VoxelShape
lambda$getDismountLocationForPassenger$0(BlockPos$MutableBlockPos arg0)
method_30339(class_2338$class_2339 arg0)
method_30339(BlockPos$Mutable arg0)