net.minecraft.world.entity.vehicle.minecart

public abstract class AbstractMinecart

extends VehicleEntity

All mapped superinterfaces:

SyncedDataHolder, DebugValueSource, Nameable, ItemOwner, SlotProvider, EntityAccess, UniquelyIdentifyable, ScoreHolder, DataComponentGetter

dgi
net.minecraft.world.entity.vehicle.minecart.AbstractMinecart
net.minecraft.class_1688
net.minecraft.entity.vehicle.AbstractMinecartEntity
net.minecraft.src.C_432854_
net.minecraft.world.entity.vehicle.minecart.EntityMinecartAbstract

字段概要

修饰符与类型字段
private static final Vec3
e
LOWERED_PASSENGER_ATTACHMENT
field_47822
VILLAGER_PASSENGER_ATTACHMENT_POS
f_436258_
private static final EntityDataAccessor<Optional<BlockState>>
f
DATA_ID_CUSTOM_DISPLAY_BLOCK
field_7671
CUSTOM_BLOCK_STATE
f_434147_
private static final EntityDataAccessor<Integer>
g
DATA_ID_DISPLAY_OFFSET
field_7661
BLOCK_OFFSET
f_434313_
private static final com.google.common.collect.ImmutableMap<Pose, com.google.common.collect.ImmutableList<Integer>>
h
POSE_DISMOUNT_HEIGHTS
field_24464
DISMOUNT_FREE_Y_SPACES_NEEDED
f_433787_
protected static final float
d
WATER_SLOWDOWN_FACTOR
field_30694
VELOCITY_SLOWDOWN_MULTIPLIER
f_433615_
private static final boolean
i
DEFAULT_FLIPPED_ROTATION
field_57749
DEFAULT_YAW_FLIPPED
f_433365_
private boolean
j
onRails
field_44917
onRail
f_436716_
private boolean
k
flipped
field_7660
yawFlipped
f_433476_
private final MinecartBehavior
l
behavior
field_52517
controller
f_436066_
private static final Map<RailShape, com.mojang.datafixers.util.Pair<Vec3i, Vec3i>>
m
EXITS
field_7664
ADJACENT_RAIL_POSITIONS_BY_SHAPE
f_434413_

构造函数概要

修饰符构造函数
protected (EntityType<?> p_453891_, Level arg1)
protected (EntityType<?> type, Level world, double x, double y, double z)

方法概要

修饰符与类型方法
public void
o(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)
m_444208_(double p_458456_, double arg1, double arg2)
public static <T extends AbstractMinecart> T
a(dwo arg0, double arg1, double arg2, double arg3, cgu<T> arg4, cgt arg5, dlt arg6, ddm 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)
m_447081_(C_1596_ p_455264_, double p_454967_, double p_460267_, double p_453547_, C_513_<T> p_459840_, C_345845_ arg5, C_1391_ arg6, C_1141_ arg7)
public MinecartBehavior
q()
getBehavior()
method_61569()
getController()
m_443863_()
protected Entity$MovementEmission
bv()
getMovementEmission()
method_33570()
getMoveEffect()
m_142319_()
protected void
a(ama$a arg0)
defineSynchedData(SynchedEntityData$Builder arg0)
method_5693(class_2945$class_9222 arg0)
initDataTracker(DataTracker$Builder arg0)
m_8097_(C_5247_$C_313487_ arg0)
public boolean
i(cgk arg0)
canCollideWith(Entity arg0)
method_30949(class_1297 arg0)
collidesWith(Entity arg0)
m_7337_(C_507_ arg0)
public boolean
bY()
isPushable()
method_5810()
isPushable()
m_6094_()
public Vec3
a(iz$a arg0, ber$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)
m_7643_(C_4687_$C_4689_ p_450788_, C_432238_$C_432536_ arg1)
protected Vec3
a(cgk arg0, cgn 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)
m_293035_(C_507_ p_460109_, C_510_ p_453698_, float arg2)
public Vec3
b(chl arg0)
getDismountLocationForPassenger(LivingEntity arg0)
method_24829(class_1309 arg0)
updatePassengerForDismount(LivingEntity arg0)
m_7688_(C_524_ arg0)
protected float
bi()
getBlockSpeedFactor()
method_23326()
getVelocityMultiplier()
m_6041_()
public void
q(float arg0)
animateHurt(float arg0)
method_5879(float arg0)
animateDamage(float arg0)
m_6053_(float arg0)
public boolean
bX()
isPickable()
method_5863()
canHit()
m_6087_()
public static com.mojang.datafixers.util.Pair<Vec3i, Vec3i>
a(epl arg0)
exits(RailShape arg0)
method_22864(class_2768 arg0)
getAdjacentRailPositionsByShape(RailShape shape)
m_442575_(C_2100_ p_454129_)
public Direction
dh()
getMotionDirection()
method_5755()
getMovementDirection()
m_6374_()
protected double
bs()
getDefaultGravity()
method_7490()
getGravity()
m_319564_()
public void
g()
tick()
method_5773()
tick()
m_8119_()
public boolean
r()
isFirstTick()
method_62824()
isFirstUpdate()
m_443892_()
public BlockPos
s()
getCurrentBlockPosOrRailBelow()
method_62825()
getRailOrMinecartPos()
m_444430_()
protected double
a(axf arg0)
getMaxSpeed(ServerLevel arg0)
method_7504(class_3218 arg0)
getMaxSpeed(ServerWorld world)
m_439265_(C_12_ arg0)
public void
a(axf arg0, int arg1, int arg2, int arg3, boolean arg4)
activateMinecart(ServerLevel arg0, int arg1, int arg2, int arg3, boolean arg4)
method_7506(class_3218 arg0, int arg1, int arg2, int arg3, boolean arg4)
onActivatorRail(ServerWorld arg0, int y, int z, int arg3, boolean arg4)
m_440462_(C_12_ p_459273_, int p_457555_, int p_451681_, int p_451146_, boolean arg4)
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)
m_293725_(int p_456924_, double p_453241_, double p_456392_, double arg3, double arg4, double arg5)
public void
bu()
applyGravity()
method_56990()
applyGravity()
m_320756_()
public void
aH()
reapplyPosition()
method_23311()
refreshPosition()
m_20090_()
public boolean
bG()
updateInWaterStateAndDoFluidPushing()
method_5876()
updateWaterState()
m_20073_()
public Vec3
ag()
getKnownMovement()
method_60478()
getMovement()
m_339221_()
public InterpolationHandler
l_()
getInterpolation()
method_66233()
getInterpolator()
m_386071_()
public void
a(adc arg0)
recreateFromPacket(ClientboundAddEntityPacket arg0)
method_31471(class_2604 arg0)
onSpawnPacket(EntitySpawnS2CPacket arg0)
m_141965_(C_5032_ arg0)
public void
j(ftm arg0)
lerpMotion(Vec3 arg0)
method_5750(class_243 arg0)
setVelocityClient(Vec3d arg0)
m_6001_(C_3046_ arg0)
protected void
b(axf arg0)
moveAlongTrack(ServerLevel arg0)
method_7513(class_3218 arg0)
moveOnRail(ServerWorld world)
m_442583_(C_12_ arg0)
protected void
e(axf arg0)
comeOffTrack(ServerLevel arg0)
method_7512(class_3218 arg0)
moveOffRail(ServerWorld world)
m_440675_(C_12_ arg0)
protected double
a(is arg0, epl 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)
m_443657_(C_4675_ p_460524_, C_2100_ p_457348_, double arg2)
public void
a(chp arg0, ftm arg1)
move(MoverType arg0, Vec3 arg1)
method_5784(class_1313 arg0, class_243 arg1)
move(MovementType arg0, Vec3d arg1)
m_6478_(C_531_ p_458411_, C_3046_ arg1)
public void
aW()
applyEffectsFromBlocks()
method_61409()
tickBlockCollision()
m_352051_()
public boolean
cH()
isOnRails()
method_52172()
isOnRail()
m_288188_()
public void
a(boolean arg0)
setOnRails(boolean arg0)
method_61565(boolean arg0)
setOnRail(boolean onRail)
m_445399_(boolean arg0)
public boolean
u()
isFlipped()
method_61571()
isYawFlipped()
m_444349_()
public void
b(boolean arg0)
setFlipped(boolean arg0)
method_61567(boolean arg0)
setYawFlipped(boolean yawFlipped)
m_439605_(boolean arg0)
public Vec3
a(is arg0)
getRedstoneDirection(BlockPos arg0)
method_61563(class_2338 arg0)
getLaunchDirection(BlockPos railPos)
m_443398_(C_4675_ arg0)
public boolean
b(is arg0)
isRedstoneConductor(BlockPos arg0)
method_18803(class_2338 arg0)
willHitBlockAt(BlockPos pos)
m_443307_(C_4675_ arg0)
protected Vec3
a(ftm arg0)
applyNaturalSlowdown(Vec3 arg0)
method_7525(class_243 arg0)
applySlowdown(Vec3d velocity)
m_441171_(C_3046_ arg0)
protected void
a(fnq arg0)
readAdditionalSaveData(ValueInput arg0)
method_5749(class_11368 arg0)
readCustomData(ReadView arg0)
m_7378_(C_398549_ arg0)
protected void
a(fns arg0)
addAdditionalSaveData(ValueOutput arg0)
method_5652(class_11372 arg0)
writeCustomData(WriteView arg0)
m_7380_(C_398537_ arg0)
public void
h(cgk arg0)
push(Entity arg0)
method_5697(class_1297 arg0)
pushAwayFrom(Entity arg0)
m_7334_(C_507_ arg0)
private void
a(dgi 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)
m_441136_(C_432854_ p_458570_, double p_450772_, double arg2)
public BlockState
v()
getDisplayBlockState()
method_7519()
getContainedBlock()
m_442886_()
private Optional<BlockState>
B()
getCustomDisplayBlockState()
method_67672()
getCustomBlockState()
m_439058_()
public BlockState
w()
getDefaultDisplayBlockState()
method_7517()
getDefaultContainedBlock()
m_438993_()
public int
x()
getDisplayOffset()
method_7514()
getBlockOffset()
m_447416_()
public int
y()
getDefaultDisplayOffset()
method_7526()
getDefaultBlockOffset()
m_438937_()
public void
a(Optional<eoh> arg0)
setCustomDisplayBlockState(Optional<BlockState> arg0)
method_7527(Optional<class_2680> arg0)
setCustomBlockState(Optional<BlockState> customBlockState)
m_445734_(Optional<C_2064_> arg0)
public void
m(int arg0)
setDisplayOffset(int arg0)
method_7515(int arg0)
setBlockOffset(int offset)
m_447264_(int arg0)
public static boolean
b(dwo arg0)
useExperimentalMovement(Level arg0)
method_61566(class_1937 arg0)
areMinecartImprovementsEnabled(World world)
m_441280_(C_1596_ p_452543_)
public abstract ItemStack
dZ()
getPickResult()
method_31480()
getPickBlockStack()
m_142340_()
public boolean
z()
isRideable()
method_64272()
isRideable()
m_444742_()
public boolean
A()
isFurnace()
method_64273()
isSelfPropelling()
m_445974_()