public abstract class EntityMinecart extends Entity implements INameable, IForgeEntityMinecart
| Modifier and Type | Class and Description |
|---|---|
static class |
EntityMinecart.Type |
addedToChunk, cachedUniqueIdString, chunkCoordX, chunkCoordY, chunkCoordZ, collided, collidedHorizontally, collidedVertically, dataManager, dimension, distanceWalkedModified, distanceWalkedOnStepModified, entityCollisionReduction, entityUniqueID, eyesInWater, fallDistance, firstUpdate, FLAGS, forceSpawn, glowing, height, hurtResistantTime, ignoreFrustumCheck, inPortal, inWater, isAirBorne, isImmuneToFire, isInWeb, lastPortalPos, lastPortalVec, lastTickPosX, lastTickPosY, lastTickPosZ, LOGGER, motionX, motionY, motionZ, noClip, onGround, portalCounter, posX, posY, posZ, prevDistanceWalkedModified, preventEntitySpawning, prevPosX, prevPosY, prevPosZ, prevRotationPitch, prevRotationYaw, rand, removed, rideCooldown, rotationPitch, rotationYaw, serverPosX, serverPosY, serverPosZ, stepHeight, submergedHeight, teleportDirection, ticksExisted, timeUntilPortal, velocityChanged, width, worldCOLLISIONS, DEFAULT_AIR_DRAG, DEFAULT_MAX_SPEED_AIR_LATERAL, DEFAULT_MAX_SPEED_AIR_VERTICAL| Modifier | Constructor and Description |
|---|---|
protected |
EntityMinecart(EntityType<?> type,
World p_i48538_2_) |
protected |
EntityMinecart(EntityType<?> type,
World p_i48539_2_,
double p_i48539_3_,
double p_i48539_5_,
double p_i48539_7_) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
applyDrag() |
void |
applyEntityCollision(Entity entityIn) |
boolean |
attackEntityFrom(DamageSource source,
float amount) |
boolean |
canBeCollidedWith() |
boolean |
canBePushed() |
protected boolean |
canTriggerWalking() |
boolean |
canUseRail()
Returns true if this cart can currently use rails.
|
static EntityMinecart |
create(World worldIn,
double x,
double y,
double z,
EntityMinecart.Type typeIn) |
EnumFacing |
getAdjustedHorizontalFacing() |
AxisAlignedBB |
getCollisionBox(Entity entityIn) |
float |
getCurrentCartSpeedCapOnRail()
Returns the current speed cap for the cart when traveling on rails.
|
float |
getDamage() |
IBlockState |
getDefaultDisplayTile() |
int |
getDefaultDisplayTileOffset() |
IBlockState |
getDisplayTile() |
int |
getDisplayTileOffset() |
double |
getDragAir() |
protected double |
getMaximumSpeed() |
double |
getMaxSpeed() |
float |
getMaxSpeedAirLateral() |
float |
getMaxSpeedAirVertical() |
abstract EntityMinecart.Type |
getMinecartType() |
double |
getMountedYOffset() |
Vec3d |
getPos(double p_70489_1_,
double p_70489_3_,
double p_70489_5_) |
Vec3d |
getPosOffset(double x,
double y,
double z,
double offset) |
AxisAlignedBB |
getRenderBoundingBox() |
int |
getRollingAmplitude() |
int |
getRollingDirection() |
boolean |
hasDisplayTile() |
void |
killMinecart(DamageSource source) |
protected void |
moveAlongTrack(BlockPos pos,
IBlockState state) |
protected void |
moveDerailedMinecart() |
void |
onActivatorRailPass(int x,
int y,
int z,
boolean receivingPower) |
void |
performHurtAnimation() |
protected void |
readAdditional(NBTTagCompound compound) |
protected void |
registerData() |
void |
setCanUseRail(boolean value)
Set whether the minecart can use rails.
|
void |
setCurrentCartSpeedCapOnRail(float value) |
void |
setDamage(float damage) |
void |
setDisplayTile(IBlockState displayTile) |
void |
setDisplayTileOffset(int displayTileOffset) |
void |
setDragAir(double value) |
void |
setHasDisplayTile(boolean showBlock) |
void |
setMaxSpeedAirLateral(float value) |
void |
setMaxSpeedAirVertical(float value) |
void |
setPosition(double x,
double y,
double z) |
void |
setPositionAndRotationDirect(double x,
double y,
double z,
float yaw,
float pitch,
int posRotationIncrements,
boolean teleport) |
void |
setRollingAmplitude(int rollingAmplitude) |
void |
setRollingDirection(int rollingDirection) |
void |
setVelocity(double x,
double y,
double z) |
void |
tick() |
protected void |
writeAdditional(NBTTagCompound compound) |
addPassenger, addTag, addTrackingPlayer, addVelocity, allowLogging, applyEnchantments, applyOrientationToEntity, applyPlayerInteraction, areEyesInFluid, awardKillScore, baseTick, canBeAttackedWithItem, canBeRidden, canBeRiddenInWater, canExplosionDestroyBlock, canFitPassenger, canPassengerSteer, canRenderOnFire, canSwim, canTrample, canUpdate, canUpdate, captureDrops, captureDrops, changeDimension, copyDataFromOld, copyLocationAndAnglesFrom, createRunningParticles, dealFireDamage, decrementTimeUntilPortal, determineNextStepDistance, doBlockCollisions, doesEntityNotTriggerPressurePlate, doWaterSplashEffect, entityDropItem, entityDropItem, entityDropItem, entityDropItem, equals, extinguish, fall, fillCrashReport, func_212321_a, getAir, getAlwaysRenderNameTagForRender, getArmorInventoryList, getBoundingBox, getBrightness, getBrightnessForRender, getCachedUniqueIdString, getCollisionBorderSize, getCollisionBoundingBox, getCommandSource, getControllingPassenger, getCustomName, getDataManager, getDisplayName, getDistance, getDistance, getDistanceSq, getDistanceSq, getDistanceSq, getDistanceSq, getDistanceSqToCenter, getEntityData, getEntityId, getEntityString, getEntityWorld, getEquipmentAndArmor, getExplosionResistance, getEyeHeight, getEyePosition, getFireImmuneTicks, getFlag, getForward, getHeldEquipment, getHighspeedSplashSound, getHorizontalFacing, getHoverEvent, getLastPortalVec, getLook, getLookVec, getLowestRidingEntity, getMaxAir, getMaxFallHeight, getMaxInPortalTime, getMirroredYaw, getName, getParts, getPassengers, getPermissionLevel, getPitch, getPitchYaw, getPortalCooldown, getPosition, getPositionVector, getPushReaction, getRecursivePassengers, getRenderDistanceWeight, getRidingEntity, getRotatedYaw, getRotationYawHead, getScoreboardName, getServer, getSoundCategory, getSplashSound, getSubmergedHeight, getSwimSound, getTags, getTeam, getTeleportDirection, getType, getUniqueID, getVectorForRotation, getYaw, getYOffset, handleFluidAcceleration, handleStatusUpdate, handleWaterMovement, hasCustomName, hashCode, hasNoGravity, hasPermissionLevel, hitByEntity, ignoreItemEntityData, isAddedToWorld, isAlive, isBeingRidden, isBurning, isCustomNameVisible, isEntityEqual, isEntityInsideOpaqueBlock, isGlowing, isImmuneToExplosions, isImmuneToFire, isInLava, isInRangeToRender3d, isInRangeToRenderDist, isInvisible, isInvisibleToPlayer, isInvulnerable, isInvulnerableTo, isInWater, isInWaterOrBubbleColumn, isInWaterRainOrBubbleColumn, isLiving, isNonBoss, isOffsetPositionInLiquid, isOnePlayerRiding, isOnSameTeam, isOnScoreboardTeam, isOutsideBorder, isPassenger, isPassenger, isPassenger, isPushedByWater, isRidingOrBeingRiddenBy, isRidingSameEntity, isSilent, isSneaking, isSpectatedByPlayer, isSprinting, isSwimming, isWet, lookAt, makeFlySound, markVelocityChanged, move, moveRelative, moveToBlockPosAndAngles, newDoubleNBTList, newFloatNBTList, notifyDataManagerChange, onAddedToWorld, onCollideWithPlayer, onEnterBubbleColumn, onEnterBubbleColumnWithAirAbove, onInsideBlock, onKillCommand, onKillEntity, onRemovedFromWorld, onStruckByLightning, outOfWorld, playFlySound, playSound, playStepSound, playSwimSound, preparePlayerToSpawn, processInitialInteract, pushOutOfBlocks, rayTrace, read, remove, remove, removePassenger, removePassengers, removeTag, removeTrackingPlayer, replaceItemInInventory, resetPositionToBB, revive, rotateTowards, sendMessage, setAir, setBoundingBox, setCustomName, setCustomNameVisible, setDropItemsWhenDead, setEntityId, setFire, setFlag, setGlowing, setHeadRotation, setInvisible, setInvulnerable, setInWeb, setItemStackToSlot, setLocationAndAngles, setNoGravity, setOnFireFromLava, setOutsideBorder, setPortal, setPositionAndRotation, setPositionAndUpdate, setPositionNonDirty, setRenderDistanceWeight, setRenderYawOffset, setRotation, setRotationYawHead, setSilent, setSize, setSneaking, setSprinting, setSwimming, setUniqueId, setWorld, shouldReceiveErrors, shouldReceiveFeedback, shouldSetPosAfterLoading, spawnRunningParticles, startRiding, startRiding, stopRiding, toString, updateFallState, updatePassenger, updateRidden, updateSwimming, writeUnlessPassenger, writeUnlessRemoved, writeWithoutTypeIdareCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, getCapabilities, getCapability, invalidateCaps, reviveCaps, serializeCapsclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetCustomName, getDisplayName, getName, hasCustomNamecanBeRidden, getCartItem, getCollisionHandler, getComparatorLevel, getCurrentRailPosition, getMaxCartSpeedOnRail, getMinecart, getSlopeAdjustment, isPoweredCart, moveMinecartOnRail, shouldDoRailFunctionscanBeRiddenInWater, canRiderInteract, deserializeNBT, getEntity, getPickedResult, isCreatureType, serializeNBT, shouldRenderInPass, shouldRiderSitgetCapability, getCapabilityprotected EntityMinecart(EntityType<?> type, World p_i48538_2_)
protected EntityMinecart(EntityType<?> type, World p_i48539_2_, double p_i48539_3_, double p_i48539_5_, double p_i48539_7_)
public static EntityMinecart create(World worldIn, double x, double y, double z, EntityMinecart.Type typeIn)
protected boolean canTriggerWalking()
canTriggerWalking in class Entityprotected void registerData()
registerData in class Entity@Nullable public AxisAlignedBB getCollisionBox(Entity entityIn)
getCollisionBox in class Entitypublic boolean canBePushed()
canBePushed in class Entitypublic double getMountedYOffset()
getMountedYOffset in class Entitypublic boolean attackEntityFrom(DamageSource source, float amount)
attackEntityFrom in class Entitypublic void killMinecart(DamageSource source)
public void performHurtAnimation()
performHurtAnimation in class Entitypublic boolean canBeCollidedWith()
canBeCollidedWith in class Entitypublic EnumFacing getAdjustedHorizontalFacing()
getAdjustedHorizontalFacing in class Entityprotected double getMaximumSpeed()
public void onActivatorRailPass(int x,
int y,
int z,
boolean receivingPower)
protected void moveDerailedMinecart()
protected void moveAlongTrack(BlockPos pos, IBlockState state)
protected void applyDrag()
public void setPosition(double x,
double y,
double z)
setPosition in class Entity@Nullable public Vec3d getPosOffset(double x, double y, double z, double offset)
@Nullable public Vec3d getPos(double p_70489_1_, double p_70489_3_, double p_70489_5_)
public AxisAlignedBB getRenderBoundingBox()
getRenderBoundingBox in class Entityprotected void readAdditional(NBTTagCompound compound)
readAdditional in class Entityprotected void writeAdditional(NBTTagCompound compound)
writeAdditional in class Entitypublic void applyEntityCollision(Entity entityIn)
applyEntityCollision in class Entitypublic void setPositionAndRotationDirect(double x,
double y,
double z,
float yaw,
float pitch,
int posRotationIncrements,
boolean teleport)
setPositionAndRotationDirect in class Entitypublic void setVelocity(double x,
double y,
double z)
setVelocity in class Entitypublic void setDamage(float damage)
public float getDamage()
public void setRollingAmplitude(int rollingAmplitude)
public int getRollingAmplitude()
public void setRollingDirection(int rollingDirection)
public int getRollingDirection()
public abstract EntityMinecart.Type getMinecartType()
public IBlockState getDisplayTile()
public IBlockState getDefaultDisplayTile()
public int getDisplayTileOffset()
public int getDefaultDisplayTileOffset()
public void setDisplayTile(IBlockState displayTile)
public void setDisplayTileOffset(int displayTileOffset)
public boolean hasDisplayTile()
public void setHasDisplayTile(boolean showBlock)
public boolean canUseRail()
IForgeEntityMinecartcanUseRail in interface IForgeEntityMinecartpublic void setCanUseRail(boolean value)
IForgeEntityMinecartsetCanUseRail in interface IForgeEntityMinecartvalue - Whether the minecart can currently use rails.public float getCurrentCartSpeedCapOnRail()
IForgeEntityMinecartgetCurrentCartSpeedCapOnRail in interface IForgeEntityMinecartpublic void setCurrentCartSpeedCapOnRail(float value)
setCurrentCartSpeedCapOnRail in interface IForgeEntityMinecartpublic float getMaxSpeedAirLateral()
getMaxSpeedAirLateral in interface IForgeEntityMinecartpublic void setMaxSpeedAirLateral(float value)
setMaxSpeedAirLateral in interface IForgeEntityMinecartpublic float getMaxSpeedAirVertical()
getMaxSpeedAirVertical in interface IForgeEntityMinecartpublic void setMaxSpeedAirVertical(float value)
setMaxSpeedAirVertical in interface IForgeEntityMinecartpublic double getDragAir()
getDragAir in interface IForgeEntityMinecartpublic void setDragAir(double value)
setDragAir in interface IForgeEntityMinecartpublic double getMaxSpeed()
getMaxSpeed in interface IForgeEntityMinecart