public abstract class ContainerMinecartEntity extends AbstractMinecartEntity implements IInventory, INamedContainerProvider
AbstractMinecartEntity.TypeaddedToChunk, cachedUniqueIdString, chunkCoordX, chunkCoordY, chunkCoordZ, collided, collidedHorizontally, collidedVertically, dataManager, dimension, distanceWalkedModified, distanceWalkedOnStepModified, entityCollisionReduction, entityUniqueID, eyesInWater, fallDistance, firstUpdate, FLAGS, forceSpawn, glowing, hurtResistantTime, ignoreFrustumCheck, inLava, inPortal, inWater, isAirBorne, lastPortalPos, lastPortalVec, lastTickPosX, lastTickPosY, lastTickPosZ, LOGGER, motionMultiplier, noClip, onGround, portalCounter, POSE, posX, posY, posZ, prevDistanceWalkedModified, preventEntitySpawning, prevPosX, prevPosY, prevPosZ, prevRotationPitch, prevRotationYaw, rand, removed, rideCooldown, rotationPitch, rotationYaw, serverPosX, serverPosY, serverPosZ, stepHeight, submergedHeight, teleportDirection, ticksExisted, timeUntilPortal, velocityChanged, worldCOLLISIONS, DEFAULT_AIR_DRAG, DEFAULT_MAX_SPEED_AIR_LATERAL, DEFAULT_MAX_SPEED_AIR_VERTICALfield_213139_a_| Modifier | Constructor and Description | 
|---|---|
| protected  | ContainerMinecartEntity(EntityType<?> p_i48537_1_,
                       double p_i48537_2_,
                       double p_i48537_4_,
                       double p_i48537_6_,
                       World p_i48537_8_) | 
| protected  | ContainerMinecartEntity(EntityType<?> p_i48536_1_,
                       World p_i48536_2_) | 
| Modifier and Type | Method and Description | 
|---|---|
| void | addLoot(PlayerEntity player) | 
| protected void | applyDrag() | 
| Entity | changeDimension(DimensionType destination) | 
| void | clear() | 
| Container | createMenu(int p_createMenu_1_,
          PlayerInventory p_createMenu_2_,
          PlayerEntity p_createMenu_3_) | 
| ItemStack | decrStackSize(int index,
             int count) | 
| void | dropContentsWhenDead(boolean value) | 
| protected abstract Container | func_213968_a(int p_213968_1_,
             PlayerInventory p_213968_2_) | 
| <T> LazyOptional<T> | getCapability(Capability<T> capability,
             Direction facing)Retrieves the Optional handler for the capability requested on the specific side. | 
| ItemStack | getStackInSlot(int index) | 
| boolean | isEmpty() | 
| boolean | isUsableByPlayer(PlayerEntity player) | 
| void | killMinecart(DamageSource source) | 
| void | markDirty() | 
| boolean | processInitialInteract(PlayerEntity player,
                      Hand hand) | 
| protected void | readAdditional(CompoundNBT compound) | 
| void | remove(boolean keepData) | 
| ItemStack | removeStackFromSlot(int index) | 
| boolean | replaceItemInInventory(int inventorySlot,
                      ItemStack itemStackIn) | 
| void | setInventorySlotContents(int index,
                        ItemStack stack) | 
| void | setLootTable(ResourceLocation lootTableIn,
            long lootTableSeedIn) | 
| protected void | writeAdditional(CompoundNBT compound) | 
applyEntityCollision, attackEntityFrom, canBeCollidedWith, canBePushed, canTriggerWalking, canUseRail, create, createSpawnPacket, getAdjustedHorizontalFacing, getCollisionBox, getCurrentCartSpeedCapOnRail, getDamage, getDefaultDisplayTile, getDefaultDisplayTileOffset, getDisplayTile, getDisplayTileOffset, getDragAir, getMaximumSpeed, getMaxSpeedAirLateral, getMaxSpeedAirVertical, getMaxSpeedWithRail, getMinecartType, getMountedYOffset, getPos, getPosOffset, getRenderBoundingBox, getRollingAmplitude, getRollingDirection, hasDisplayTile, moveAlongTrack, moveDerailedMinecart, moveMinecartOnRail, onActivatorRailPass, performHurtAnimation, registerData, setCanUseRail, setCurrentCartSpeedCapOnRail, setDamage, setDisplayTile, setDisplayTileOffset, setDragAir, setHasDisplayTile, setMaxSpeedAirLateral, setMaxSpeedAirVertical, setPositionAndRotationDirect, setRollingAmplitude, setRollingDirection, setVelocity, tickaddPassenger, addTag, addTrackingPlayer, addVelocity, allowLogging, applyEnchantments, applyOrientationToEntity, applyPlayerInteraction, areEyesInFluid, areEyesInFluid, awardKillScore, baseTick, canBeAttackedWithItem, canBeRidden, canBeRiddenInWater, canExplosionDestroyBlock, canFitPassenger, canPassengerSteer, canRenderOnFire, canSwim, canTrample, canUpdate, canUpdate, captureDrops, captureDrops, copyDataFromOld, copyLocationAndAnglesFrom, createRunningParticles, dealFireDamage, decrementTimeUntilPortal, detach, determineNextStepDistance, doBlockCollisions, doesEntityNotTriggerPressurePlate, doWaterSplashEffect, entityDropItem, entityDropItem, entityDropItem, entityDropItem, equals, extinguish, fall, fillCrashReport, func_213286_i, func_213296_b, func_213300_bk, func_213312_b, func_213314_bj, func_213320_d, func_213324_a, func_223307_a, func_223308_g, func_223310_a, func_223314_ad, getAbsoluteMotion, getAir, getAllowedMovement, getAlwaysRenderNameTagForRender, getArmorInventoryList, getBoundingBox, getBoundingBox, getBrightness, getBrightnessForRender, getCachedUniqueIdString, getCollisionBorderSize, getCollisionBoundingBox, getCommandSource, getControllingPassenger, getCustomName, getDataManager, getDisplayName, getDistance, getDistanceSq, getDistanceSq, getDistanceSq, getEntityId, getEntityString, getEntityWorld, getEquipmentAndArmor, getExplosionResistance, getEyeHeight, getEyeHeight, getEyeHeight, getEyePosition, getFireImmuneTicks, getFlag, getForward, getHeight, getHeldEquipment, getHighspeedSplashSound, getHorizontalFacing, getHoverEvent, getLastPortalVec, getLook, getLookVec, getLowestRidingEntity, getMaxAir, getMaxFallHeight, getMaxInPortalTime, getMirroredYaw, getMotion, getName, getPassengers, getPermissionLevel, getPersistentData, getPitch, getPitchYaw, getPortalCooldown, getPose, getPosition, getPositionVec, getPositionVector, getPushReaction, getRecursivePassengers, getRenderDistanceWeight, getRidingEntity, getRotatedYaw, getRotationYawHead, getScoreboardName, getServer, getSize, getSoundCategory, getSplashSound, getSubmergedHeight, getSwimSound, getTags, getTeam, getTeleportDirection, getType, getUniqueID, getVectorForRotation, getWidth, getYaw, getYOffset, handleFluidAcceleration, handlePistonMovement, handleSneakMovement, 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, isPassenger, isPassenger, isPassenger, isPoseClear, isPushedByWater, isRidingOrBeingRiddenBy, isRidingSameEntity, isSilent, isSneaking, isSpectatedByPlayer, isSpectator, 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, pushOutOfBlocks, read, recalculateSize, remove, removePassenger, removePassengers, removeTag, removeTrackingPlayer, resetPositionToBB, revive, rotateTowards, sendMessage, setAir, setBoundingBox, setCustomName, setCustomNameVisible, setEntityId, setFire, setFlag, setGlowing, setHeadRotation, setInLava, setInvisible, setInvulnerable, setItemStackToSlot, setLocationAndAngles, setMotion, setMotion, setMotionMultiplier, setNoGravity, setOnFireFromLava, setPortal, setPose, setPosition, setPositionAndRotation, setPositionAndUpdate, setPositionNonDirty, setRenderDistanceWeight, setRenderYawOffset, setRotation, setRotationYawHead, setSilent, setSneaking, setSprinting, setSwimming, setUniqueId, setWorld, shouldReceiveErrors, shouldReceiveFeedback, shouldRenderSneaking, shouldSetPosAfterLoading, spawnRunningParticles, startRiding, startRiding, stopRiding, teleportKeepLoaded, toString, updateFallState, updatePassenger, updatePortal, updateRidden, updateSwimming, writeUnlessPassenger, writeUnlessRemoved, writeWithoutTypeIdareCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, getCapabilities, invalidateCaps, reviveCaps, serializeCapsclone, finalize, getClass, notify, notifyAll, wait, wait, waitcloseInventory, count, getInventoryStackLimit, getSizeInventory, hasAny, isItemValidForSlot, openInventoryclearObjgetDisplayNamecanBeRidden, getCartItem, getCollisionHandler, getComparatorLevel, getCurrentRailPosition, getMaxCartSpeedOnRail, getMinecart, getSlopeAdjustment, isPoweredCart, shouldDoRailFunctionscanBeRiddenInWater, canRiderInteract, deserializeNBT, getClassification, getEntity, getPickedResult, serializeNBT, shouldRiderSitgetCapabilityprotected ContainerMinecartEntity(EntityType<?> p_i48536_1_, World p_i48536_2_)
protected ContainerMinecartEntity(EntityType<?> p_i48537_1_, double p_i48537_2_, double p_i48537_4_, double p_i48537_6_, World p_i48537_8_)
public void killMinecart(DamageSource source)
killMinecart in class AbstractMinecartEntitypublic boolean isEmpty()
isEmpty in interface IInventorypublic ItemStack getStackInSlot(int index)
getStackInSlot in interface IInventorypublic ItemStack decrStackSize(int index, int count)
decrStackSize in interface IInventorypublic ItemStack removeStackFromSlot(int index)
removeStackFromSlot in interface IInventorypublic void setInventorySlotContents(int index,
                                     ItemStack stack)
setInventorySlotContents in interface IInventorypublic boolean replaceItemInInventory(int inventorySlot,
                                      ItemStack itemStackIn)
replaceItemInInventory in class Entitypublic void markDirty()
markDirty in interface IInventorypublic boolean isUsableByPlayer(PlayerEntity player)
isUsableByPlayer in interface IInventory@Nullable public Entity changeDimension(DimensionType destination)
changeDimension in class Entityprotected void writeAdditional(CompoundNBT compound)
writeAdditional in class AbstractMinecartEntityprotected void readAdditional(CompoundNBT compound)
readAdditional in class AbstractMinecartEntitypublic boolean processInitialInteract(PlayerEntity player, Hand hand)
processInitialInteract in class Entityprotected void applyDrag()
applyDrag in class AbstractMinecartEntitypublic void addLoot(@Nullable
                    PlayerEntity player)
public void clear()
clear in interface IClearablepublic void setLootTable(ResourceLocation lootTableIn, long lootTableSeedIn)
@Nullable public Container createMenu(int p_createMenu_1_, PlayerInventory p_createMenu_2_, PlayerEntity p_createMenu_3_)
createMenu in interface IContainerProviderprotected abstract Container func_213968_a(int p_213968_1_, PlayerInventory p_213968_2_)
public <T> LazyOptional<T> getCapability(Capability<T> capability, @Nullable Direction facing)
ICapabilityProvidergetCapability in interface ICapabilityProvidergetCapability in class CapabilityProvider<Entity>public void dropContentsWhenDead(boolean value)