net.minecraft.world.entity.vehicle

public abstract class AbstractMinecart

extends VehicleEntity

All mapped superinterfaces:

SyncedDataHolder, Nameable, EntityAccess, ScoreHolder

cqx
net.minecraft.world.entity.vehicle.AbstractMinecart
net.minecraft.class_1688
net.minecraft.entity.vehicle.AbstractMinecartEntity
net.minecraft.world.entity.vehicle.EntityMinecartAbstract

Field summary

Modifier and TypeField
private static final Vec3
b
LOWERED_PASSENGER_ATTACHMENT
field_47822
VILLAGER_PASSENGER_ATTACHMENT_POS
private static final EntityDataAccessor<Integer>
c
DATA_ID_DISPLAY_BLOCK
field_7671
CUSTOM_BLOCK_ID
private static final EntityDataAccessor<Integer>
d
DATA_ID_DISPLAY_OFFSET
field_7661
CUSTOM_BLOCK_OFFSET
private static final EntityDataAccessor<Boolean>
h
DATA_ID_CUSTOM_DISPLAY
field_7670
CUSTOM_BLOCK_PRESENT
private static final com.google.common.collect.ImmutableMap<Pose, com.google.common.collect.ImmutableList<Integer>>
i
POSE_DISMOUNT_HEIGHTS
field_24464
DISMOUNT_FREE_Y_SPACES_NEEDED
protected static final float
a
WATER_SLOWDOWN_FACTOR
field_30694
VELOCITY_SLOWDOWN_MULTIPLIER
private boolean
j
onRails
field_44917
onRail
private boolean
k
flipped
field_7660
yawFlipped
private final MinecartBehavior
l
behavior
field_52517
controller
private static final Map<RailShape, com.mojang.datafixers.util.Pair<Vec3i, Vec3i>>
m
EXITS
field_7664
ADJACENT_RAIL_POSITIONS_BY_SHAPE

Constructor summary

ModifierConstructor
protected (EntityType<?> arg0, Level arg1)
protected (EntityType<?> type, Level world, double x, double y, double z)

Method summary

Modifier and TypeMethod
public void
p(double arg0, double arg1, double arg2)
setInitialPos(double arg0, double arg1, double arg2)
method_64275(double arg0, double arg1, double arg2)
initPosition(double x, double y, double z)
public static <T extends AbstractMinecart> T
a(dgj arg0, double arg1, double arg2, double arg3, but<T> arg4, bus arg5, cwq arg6, coy arg7)
createMinecart(Level arg0, double arg1, double arg2, double arg3, EntityType<T> arg4, EntitySpawnReason arg5, ItemStack arg6, Player arg7)
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 MinecartBehavior
l()
getBehavior()
method_61569()
getController()
protected Entity$MovementEmission
bg()
getMovementEmission()
method_33570()
getMoveEffect()
protected void
a(akc$a arg0)
defineSynchedData(SynchedEntityData$Builder arg0)
method_5693(class_2945$class_9222 arg0)
initDataTracker(DataTracker$Builder arg0)
public boolean
i(bum arg0)
canCollideWith(Entity arg0)
method_30949(class_1297 arg0)
collidesWith(Entity arg0)
public boolean
bI()
isPushable()
method_5810()
isPushable()
public Vec3
a(jn$a arg0, l$a arg1)
getRelativePortalPosition(Direction$Axis arg0, BlockUtil$FoundRectangle arg1)
method_30633(class_2350$class_2351 arg0, class_5459$class_5460 arg1)
positionInPortal(Direction$Axis arg0, BlockLocating$Rectangle arg1)
protected Vec3
a(bum arg0, bup arg1, float arg2)
getPassengerAttachmentPoint(Entity arg0, EntityDimensions arg1, float arg2)
method_52533(class_1297 arg0, class_4048 arg1, float arg2)
getPassengerAttachmentPos(Entity arg0, EntityDimensions arg1, float arg2)
public Vec3
b(bvi arg0)
getDismountLocationForPassenger(LivingEntity arg0)
method_24829(class_1309 arg0)
updatePassengerForDismount(LivingEntity arg0)
protected float
aT()
getBlockSpeedFactor()
method_23326()
getVelocityMultiplier()
public void
p(float arg0)
animateHurt(float arg0)
method_5879(float arg0)
animateDamage(float arg0)
public boolean
bH()
isPickable()
method_5863()
canHit()
public static com.mojang.datafixers.util.Pair<Vec3i, Vec3i>
a(dyb arg0)
exits(RailShape arg0)
method_22864(class_2768 arg0)
getAdjacentRailPositionsByShape(RailShape shape)
public Direction
cP()
getMotionDirection()
method_5755()
getMovementDirection()
protected double
bd()
getDefaultGravity()
method_7490()
getGravity()
public void
h()
tick()
method_5773()
tick()
public boolean
m()
isFirstTick()
method_62824()
isFirstUpdate()
public BlockPos
p()
getCurrentBlockPosOrRailBelow()
method_62825()
getRailOrMinecartPos()
protected double
a(ard arg0)
getMaxSpeed(ServerLevel arg0)
method_7504(class_3218 arg0)
getMaxSpeed(ServerWorld world)
public void
a(int arg0, int arg1, int arg2, boolean arg3)
activateMinecart(int arg0, int arg1, int arg2, boolean arg3)
method_7506(int arg0, int arg1, int arg2, boolean arg3)
onActivatorRail(int x, int y, int z, boolean powered)
public void
a(int arg0, double arg1, double arg2, double arg3, double arg4, double arg5)
lerpPositionAndRotationStep(int arg0, double arg1, double arg2, double arg3, double arg4, double arg5)
method_52532(int arg0, double arg1, double arg2, double arg3, double arg4, double arg5)
lerpPosAndRotation(int arg0, double arg1, double arg2, double arg3, double arg4, double arg5)
public void
bf()
applyGravity()
method_56990()
applyGravity()
public void
ay()
reapplyPosition()
method_23311()
refreshPosition()
public boolean
bq()
updateInWaterStateAndDoFluidPushing()
method_5876()
updateWaterState()
public Vec3
ah()
getKnownMovement()
method_60478()
getMovement()
public void
f_()
cancelLerp()
method_64610()
resetLerp()
public void
a(double arg0, double arg1, double arg2, float arg3, float arg4, int arg5)
lerpTo(double arg0, double arg1, double arg2, float arg3, float arg4, int arg5)
method_5759(double arg0, double arg1, double arg2, float arg3, float arg4, int arg5)
updateTrackedPositionAndAngles(double arg0, double arg1, double arg2, float arg3, float arg4, int arg5)
public double
R_()
lerpTargetX()
method_53830()
getLerpTargetX()
public double
S_()
lerpTargetY()
method_53827()
getLerpTargetY()
public double
g_()
lerpTargetZ()
method_53828()
getLerpTargetZ()
public float
r_()
lerpTargetXRot()
method_53829()
getLerpTargetPitch()
public float
h_()
lerpTargetYRot()
method_53831()
getLerpTargetYaw()
public void
l(double arg0, double arg1, double arg2)
lerpMotion(double arg0, double arg1, double arg2)
method_5750(double arg0, double arg1, double arg2)
setVelocityClient(double arg0, double arg1, double arg2)
protected void
b(ard arg0)
moveAlongTrack(ServerLevel arg0)
method_7513(class_3218 arg0)
moveOnRail(ServerWorld world)
protected void
e(ard arg0)
comeOffTrack(ServerLevel arg0)
method_7512(class_3218 arg0)
moveOffRail(ServerWorld world)
protected double
a(ji arg0, dyb arg1, double arg2)
makeStepAlongTrack(BlockPos arg0, RailShape arg1, double arg2)
method_61564(class_2338 arg0, class_2768 arg1, double arg2)
moveAlongTrack(BlockPos pos, RailShape shape, double remainingMovement)
public void
a(bvm arg0, fbb arg1)
move(MoverType arg0, Vec3 arg1)
method_5784(class_1313 arg0, class_243 arg1)
move(MovementType arg0, Vec3d arg1)
public void
aK()
applyEffectsFromBlocks()
method_61409()
tickBlockCollision()
public boolean
cq()
isOnRails()
method_52172()
isOnRail()
public void
a(boolean arg0)
setOnRails(boolean arg0)
method_61565(boolean arg0)
setOnRail(boolean onRail)
public boolean
s()
isFlipped()
method_61571()
isYawFlipped()
public void
b(boolean arg0)
setFlipped(boolean arg0)
method_61567(boolean arg0)
setYawFlipped(boolean yawFlipped)
public Vec3
a(ji arg0)
getRedstoneDirection(BlockPos arg0)
method_61563(class_2338 arg0)
getLaunchDirection(BlockPos railPos)
public boolean
b(ji arg0)
isRedstoneConductor(BlockPos arg0)
method_18803(class_2338 arg0)
willHitBlockAt(BlockPos pos)
protected Vec3
a(fbb arg0)
applyNaturalSlowdown(Vec3 arg0)
method_7525(class_243 arg0)
applySlowdown(Vec3d velocity)
protected void
a(tq arg0)
readAdditionalSaveData(CompoundTag arg0)
method_5749(class_2487 arg0)
readCustomDataFromNbt(NbtCompound arg0)
protected void
b(tq arg0)
addAdditionalSaveData(CompoundTag arg0)
method_5652(class_2487 arg0)
writeCustomDataToNbt(NbtCompound arg0)
public void
h(bum arg0)
push(Entity arg0)
method_5697(class_1297 arg0)
pushAwayFrom(Entity arg0)
private void
a(cqx arg0, double arg1, double arg2)
pushOtherMinecart(AbstractMinecart arg0, double arg1, double arg2)
method_64274(class_1688 arg0, double arg1, double arg2)
pushAwayFromMinecart(AbstractMinecartEntity entity, double xDiff, double zDiff)
public BlockState
t()
getDisplayBlockState()
method_7519()
getContainedBlock()
public BlockState
w()
getDefaultDisplayBlockState()
method_7517()
getDefaultContainedBlock()
public int
y()
getDisplayOffset()
method_7514()
getBlockOffset()
public int
z()
getDefaultDisplayOffset()
method_7526()
getDefaultBlockOffset()
public void
c(dwy arg0)
setDisplayBlockState(BlockState arg0)
method_7527(class_2680 arg0)
setCustomBlock(BlockState state)
public void
c(int arg0)
setDisplayOffset(int arg0)
method_7515(int arg0)
setCustomBlockOffset(int offset)
public boolean
A()
hasCustomDisplay()
method_7510()
hasCustomBlock()
public void
r(boolean arg0)
setCustomDisplay(boolean arg0)
method_7511(boolean arg0)
setCustomBlockPresent(boolean present)
public static boolean
b(dgj arg0)
useExperimentalMovement(Level arg0)
method_61566(class_1937 arg0)
areMinecartImprovementsEnabled(World world)
public abstract ItemStack
dI()
getPickResult()
method_31480()
getPickBlockStack()
public boolean
B()
isRideable()
method_64272()
isRideable()
public boolean
C()
isFurnace()
method_64273()
isSelfPropelling()