public abstract class AbstractMinecartEntity extends Entity
| Modifier and Type | Class and Description |
|---|---|
static class |
AbstractMinecartEntity.Type |
Entity.PositionUpdater| Modifier and Type | Field and Description |
|---|---|
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 boolean |
field_7660 |
private static Map<RailShape,com.mojang.datafixers.util.Pair<Vec3i,Vec3i>> |
field_7664 |
age, chunkX, chunkY, chunkZ, dataTracker, dimension, distanceTraveled, fallDistance, firstUpdate, FLAGS, glowing, horizontalCollision, horizontalSpeed, ignoreCameraFrustum, inanimate, inLava, inNetherPortal, lastNetherPortalDirection, lastNetherPortalDirectionVector, lastNetherPortalPosition, lastRenderX, lastRenderY, lastRenderZ, LOGGER, movementMultiplier, netherPortalCooldown, netherPortalTime, noClip, onGround, pitch, POSE, prevHorizontalSpeed, prevPitch, prevX, prevY, prevYaw, prevZ, pushSpeedReduction, random, removed, ridingCooldown, stepHeight, submergedInWater, teleporting, timeUntilRegen, touchingWater, trackedX, trackedY, trackedZ, updateNeeded, uuid, uuidString, velocityDirty, velocityModified, verticalCollision, waterHeight, world, yawDUMMY| Modifier | Constructor and Description |
|---|---|
protected |
AbstractMinecartEntity(EntityType<?> type,
World world) |
protected |
AbstractMinecartEntity(EntityType<?> type,
World world,
double x,
double y,
double z) |
| Modifier and Type | Method and Description |
|---|---|
void |
animateDamage() |
protected void |
applySlowdown() |
protected boolean |
canClimb() |
boolean |
collides() |
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) |
int |
getBlockOffset() |
BlockState |
getContainedBlock() |
int |
getDamageWobbleSide() |
float |
getDamageWobbleStrength() |
int |
getDamageWobbleTicks() |
int |
getDefaultBlockOffset() |
BlockState |
getDefaultContainedBlock() |
Box |
getHardCollisionBox(Entity collidingEntity) |
protected double |
getMaxOffRailSpeed() |
abstract AbstractMinecartEntity.Type |
getMinecartType() |
double |
getMountedHeightOffset() |
Direction |
getMovementDirection() |
protected float |
getVelocityMultiplier() |
Box |
getVisibilityBoundingBox() |
boolean |
hasCustomBlock() |
protected void |
initDataTracker() |
boolean |
isPushable() |
private static com.mojang.datafixers.util.Pair<Vec3i,Vec3i> |
method_22864(RailShape railShape) |
Vec3d |
method_7505(double double2,
double double3,
double double4,
double double5) |
Vec3d |
method_7508(double double2,
double double3,
double double4) |
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 blockState) |
void |
setCustomBlockOffset(int int2) |
void |
setCustomBlockPresent(boolean bool) |
void |
setDamageWobbleSide(int wobbleSide) |
void |
setDamageWobbleStrength(float float2) |
void |
setDamageWobbleTicks(int wobbleTicks) |
void |
setVelocityClient(double x,
double y,
double z) |
void |
tick() |
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) |
addPassenger, addScoreboardTag, addVelocity, adjustMovementForCollisions, adjustMovementForCollisions, adjustMovementForPiston, adjustMovementForSneaking, adjustSingleAxisMovementForCollisions, afterSpawn, applyMirror, applyRotation, attemptSprintingParticles, baseTick, bypassesLandingEffects, bypassesSteppingEffects, calculateBoundsForPose, calculateDimensions, calculateNextStepSoundDistance, canAddPassenger, canAvoidTraps, canBeRiddenInWater, canBeSpectated, canExplosionDestroyBlock, canFly, canStartRiding, canUsePortals, changeDimension, changeLookDirection, checkBlockCollision, checkDespawn, copyFrom, copyPositionAndRotation, dealDamage, destroy, detach, distanceTo, doesNotCollide, doesRenderOnFire, dropItem, dropItem, dropStack, dropStack, entityDataRequiresOperator, equals, equip, equipStack, extinguish, fall, fromTag, getAir, getArmorItems, getBlockPos, getBodyY, getBoundingBox, getBrightnessAtEyes, getBurningDuration, getCameraPosVec, getCollisionBox, getCommandSource, getCustomName, getDataTracker, getDefaultName, getDefaultNetherPortalCooldown, getDimensions, getDisplayName, getEffectiveExplosionResistance, getEntityId, getEntityName, getEntityWorld, getEyeHeight, getEyeHeight, getEyeY, getFireTicks, getFlag, getHeadYaw, getHeight, getHeightOffset, getHighSpeedSplashSound, getHorizontalFacing, getHoverEvent, getItemsEquipped, getItemsHand, getJumpVelocityMultiplier, getLandingBlockState, getLandingPos, getLastNetherPortalDirection, getLastNetherPortalDirectionVector, getMaxAir, getMaxNetherPortalTime, getName, getOppositeRotationVector, getOppositeRotationVector, getParticleX, getParticleZ, 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, getType, getUuid, getUuidAsString, getVehicle, getVelocity, getVelocityAffectingPos, getWaterHeight, getWidth, getX, getY, getYaw, getZ, handleAttack, handleFallDamage, handleStatus, hasCustomName, hashCode, hasNoGravity, hasPassenger, hasPassengerDeep, hasPassengers, hasPassengerType, hasPermissionLevel, hasPlayerRider, hasVehicle, hasWings, interact, interactAt, isAlive, isAttackable, isConnectedThroughVehicle, isCustomNameVisible, isDescending, isFireImmune, isGlowing, isImmuneToExplosion, isInLava, isInRange, isInsideWall, isInsideWaterOrBubbleColumn, isInSneakingPose, isInSwimmingPose, isInvisible, isInvisibleTo, isInvulnerable, isInvulnerableTo, isLiving, isLogicalSideForUpdatingMovement, isOnFire, isOnGround, isPartOf, isSilent, isSneaking, isSneaky, isSpectator, isSprinting, isSubmergedIn, isSubmergedIn, isSubmergedInWater, isSwimming, isTeammate, isTeamPlayer, isTouchingWater, isTouchingWaterOrRain, isWet, kill, lookAt, method_24826, method_24829, move, moveToBoundingBoxCenter, offsetX, offsetZ, onBlockCollision, onBubbleColumnCollision, onBubbleColumnSurfaceCollision, onKilledOther, onPassengerLookAround, onPlayerCollision, onStartedTrackingBy, onStoppedTrackingBy, onStruckByLightning, onSwimmingStart, onTrackedDataSet, playFlySound, playSound, playStepSound, playSwimSound, populateCrashReport, positAfterTeleport, pushOutOfBlocks, rayTrace, refreshPosition, refreshPositionAndAngles, refreshPositionAndAngles, remove, removeAllPassengers, removePassenger, removeScoreboardTag, requestTeleport, resetPosition, saveSelfToTag, saveToTag, scheduleVelocityUpdate, sendSystemMessage, setAir, setBoundingBox, setCustomName, setCustomNameVisible, setEntityId, setFireTicks, setFlag, setGlowing, setHeadYaw, setInLava, setInNetherPortal, setInvisible, setInvulnerable, setNoGravity, setOnFireFor, setOnFireFromLava, setOnGround, setPos, setPose, setRenderDistanceMultiplier, setRotation, setSilent, setSneaking, setSprinting, setSwimming, setUuid, setVelocity, setVelocity, setWorld, setYaw, shouldBroadcastConsoleToOps, shouldLeaveSwimmingPose, shouldReceiveFeedback, shouldRender, shouldRender, shouldRenderName, shouldSetPositionOnLoad, shouldTrackOutput, slowMovement, spawnSprintingParticles, squaredDistanceTo, squaredDistanceTo, squaredDistanceTo, squaredHorizontalLength, startRiding, startRiding, stopRiding, streamPassengersRecursively, teleport, teleportRequested, tickNetherPortal, tickNetherPortalCooldown, tickRiding, toListTag, toListTag, toString, toTag, updateKilledAdvancementCriterion, updateMovementInFluid, updatePassengerPosition, updatePassengerPosition, updatePosition, updatePositionAndAngles, updatePositionsRecursively, updateSwimming, updateTrackedHeadRotation, updateTrackedPosition, updateVelocity, updateWaterState, wouldPoseNotCollideprivate static final TrackedData<Integer> DAMAGE_WOBBLE_TICKS
private static final TrackedData<Integer> DAMAGE_WOBBLE_SIDE
private static final TrackedData<Float> DAMAGE_WOBBLE_STRENGTH
private static final TrackedData<Integer> CUSTOM_BLOCK_ID
private static final TrackedData<Integer> CUSTOM_BLOCK_OFFSET
private static final TrackedData<Boolean> CUSTOM_BLOCK_PRESENT
private static final Map<RailShape,com.mojang.datafixers.util.Pair<Vec3i,Vec3i>> field_7664
private boolean field_7660
private int clientInterpolationSteps
private double clientX
private double clientY
private double clientZ
private double clientYaw
private double clientPitch
@Environment(value=CLIENT) private double clientXVelocity
@Environment(value=CLIENT) private double clientYVelocity
@Environment(value=CLIENT) private double clientZVelocity
protected AbstractMinecartEntity(EntityType<?> type, World world)
protected AbstractMinecartEntity(EntityType<?> type, World world, double x, double y, double z)
public static AbstractMinecartEntity create(World world, double x, double y, double z, AbstractMinecartEntity.Type type)
protected void initDataTracker()
initDataTracker in class Entity@Nullable public Box getHardCollisionBox(Entity collidingEntity)
getHardCollisionBox in class Entitypublic boolean isPushable()
isPushable in class Entitypublic double getMountedHeightOffset()
getMountedHeightOffset in class Entitypublic boolean damage(DamageSource source, float amount)
protected float getVelocityMultiplier()
getVelocityMultiplier in class Entitypublic void dropItems(DamageSource damageSource)
@Environment(value=CLIENT) public void animateDamage()
animateDamage in class Entityprivate static com.mojang.datafixers.util.Pair<Vec3i,Vec3i> method_22864(RailShape railShape)
public Direction getMovementDirection()
getMovementDirection in class Entityprotected double getMaxOffRailSpeed()
public void onActivatorRail(int x,
int y,
int z,
boolean powered)
protected void moveOffRail()
protected void moveOnRail(BlockPos pos, BlockState state)
private boolean willHitBlockAt(BlockPos pos)
protected void applySlowdown()
@Environment(value=CLIENT) @Nullable public Vec3d method_7505(double double2, double double3, double double4, double double5)
@Environment(value=CLIENT) public Box getVisibilityBoundingBox()
getVisibilityBoundingBox in class Entityprotected void readCustomDataFromTag(CompoundTag tag)
readCustomDataFromTag in class Entityprotected void writeCustomDataToTag(CompoundTag tag)
writeCustomDataToTag in class Entitypublic void pushAwayFrom(Entity entity)
pushAwayFrom in class Entity@Environment(value=CLIENT)
public void updateTrackedPositionAndAngles(double x,
double y,
double z,
float yaw,
float pitch,
int interpolationSteps,
boolean interpolate)
updateTrackedPositionAndAngles in class Entity@Environment(value=CLIENT)
public void setVelocityClient(double x,
double y,
double z)
setVelocityClient in class Entitypublic void setDamageWobbleStrength(float float2)
public float getDamageWobbleStrength()
public void setDamageWobbleTicks(int wobbleTicks)
public int getDamageWobbleTicks()
public void setDamageWobbleSide(int wobbleSide)
public int getDamageWobbleSide()
public abstract AbstractMinecartEntity.Type getMinecartType()
public BlockState getContainedBlock()
public BlockState getDefaultContainedBlock()
public int getBlockOffset()
public int getDefaultBlockOffset()
public void setCustomBlock(BlockState blockState)
public void setCustomBlockOffset(int int2)
public boolean hasCustomBlock()
public void setCustomBlockPresent(boolean bool)
public Packet<?> createSpawnPacket()
createSpawnPacket in class Entity