public class EntityMinecartHopper extends EntityMinecartContainer implements IHopper
EntityMinecart.EnumMinecartTypedropContentsWhenDead, itemHandlercanBePushed, canUseRail, defaultDragAir, defaultMaxSpeedAirLateral, defaultMaxSpeedAirVertical, dragAir, maxSpeedAirLateral, maxSpeedAirVerticaladdedToChunk, capturedDrops, captureDrops, chunkCoordX, chunkCoordY, chunkCoordZ, dataWatcher, dimension, distanceWalkedModified, distanceWalkedOnStepModified, entityCollisionReduction, entityUniqueID, extendedProperties, fallDistance, field_181016_an, field_181017_ao, field_181018_ap, fireResistance, firstUpdate, forceSpawn, height, hurtResistantTime, ignoreFrustumCheck, inPortal, inWater, isAirBorne, isCollided, isCollidedHorizontally, isCollidedVertically, isDead, isImmuneToFire, isInWeb, lastTickPosX, lastTickPosY, lastTickPosZ, motionX, motionY, motionZ, noClip, onGround, portalCounter, posX, posY, posZ, prevDistanceWalkedModified, preventEntitySpawning, prevPosX, prevPosY, prevPosZ, prevRotationPitch, prevRotationYaw, rand, renderDistanceWeight, riddenByEntity, ridingEntity, rotationPitch, rotationYaw, serverPosX, serverPosY, serverPosZ, stepHeight, ticksExisted, timeUntilPortal, velocityChanged, width, worldObj| Constructor and Description |
|---|
EntityMinecartHopper(World worldIn) |
EntityMinecartHopper(World worldIn,
double p_i1721_2_,
double p_i1721_4_,
double p_i1721_6_) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canTransfer()
Returns whether the hopper cart can currently transfer an item.
|
Container |
createContainer(InventoryPlayer playerInventory,
EntityPlayer playerIn) |
boolean |
func_96112_aD() |
boolean |
getBlocked()
Get whether this hopper minecart is being blocked by an activator rail.
|
IBlockState |
getDefaultDisplayTile() |
int |
getDefaultDisplayTileOffset() |
java.lang.String |
getGuiID() |
EntityMinecart.EnumMinecartType |
getMinecartType() |
int |
getSizeInventory()
Returns the number of slots in the inventory.
|
World |
getWorld()
Returns the worldObj for this tileEntity.
|
double |
getXPos()
Gets the world X position for this hopper entity.
|
double |
getYPos()
Gets the world Y position for this hopper entity.
|
double |
getZPos()
Gets the world Z position for this hopper entity.
|
boolean |
interactFirst(EntityPlayer playerIn)
First layer of player interaction
|
void |
killMinecart(DamageSource p_94095_1_) |
void |
onActivatorRailPass(int x,
int y,
int z,
boolean receivingPower)
Called every tick the minecart is on an activator rail.
|
void |
onUpdate()
Called to update the entity's position/logic.
|
protected void |
readEntityFromNBT(NBTTagCompound tagCompund)
(abstract) Protected helper method to read subclass entity data from NBT.
|
void |
setBlocked(boolean p_96110_1_)
Set whether this hopper minecart is being blocked by an activator rail.
|
void |
setTransferTicker(int p_98042_1_)
Sets the transfer ticker, used to determine the delay between transfers.
|
protected void |
writeEntityToNBT(NBTTagCompound tagCompound)
(abstract) Protected helper method to write subclass entity data to NBT.
|
applyDrag, clear, closeInventory, decrStackSize, getCapability, getField, getFieldCount, getInventoryStackLimit, getLockCode, getName, getStackInSlot, hasCapability, isItemValidForSlot, isLocked, isUseableByPlayer, markDirty, openInventory, removeStackFromSlot, setDead, setField, setInventorySlotContents, setLockCode, travelToDimensionapplyEntityCollision, attackEntityFrom, canBeCollidedWith, canBePushed, canBeRidden, canTriggerWalking, canUseRail, entityInit, func_174899_a, func_180458_a, func_180460_a, func_70489_a, func_70495_a, getCartItem, getCollisionBoundingBox, getCollisionBox, getCollisionHandler, getCurrentCartSpeedCapOnRail, getCustomNameTag, getDamage, getDisplayName, getDisplayTile, getDisplayTileOffset, getDragAir, getMaxCartSpeedOnRail, getMaximumSpeed, getMaxSpeed, getMaxSpeedAirLateral, getMaxSpeedAirVertical, getMountedYOffset, getRollingAmplitude, getRollingDirection, getSlopeAdjustment, hasCustomName, hasDisplayTile, isPoweredCart, moveDerailedMinecart, moveMinecartOnRail, performHurtAnimation, setCanUseRail, setCollisionHandler, setCurrentCartSpeedCapOnRail, setCustomNameTag, setDamage, setDisplayTileOffset, setDragAir, setHasDisplayTile, setMaxSpeedAirLateral, setMaxSpeedAirVertical, setPosition, setPositionAndRotation2, setRollingAmplitude, setRollingDirection, setVelocity, shouldDoRailFunctionsaddChatMessage, addEntityCrashInfo, addToPlayerScore, addVelocity, applyEnchantments, canAttackWithItem, canCommandSenderUseCommand, canRenderOnFire, canRiderInteract, clientUpdateEntityNBT, copyDataFromOld, copyLocationAndAnglesFrom, createRunningParticles, dealFireDamage, deserializeNBT, doBlockCollisions, doesEntityNotTriggerPressurePlate, dropItem, dropItemWithOffset, entityDropItem, equals, extinguish, fall, func_174817_o, func_181012_aH, func_181013_g, func_181014_aG, getAir, getAlwaysRenderNameTag, getAlwaysRenderNameTagForRender, getBrightness, getBrightnessForRender, getCollisionBorderSize, getCommandSenderEntity, getCommandStats, getDataWatcher, getDistance, getDistanceSq, getDistanceSq, getDistanceSqToCenter, getDistanceSqToEntity, getDistanceToEntity, getEntityBoundingBox, getEntityData, getEntityId, getEntityString, getEntityWorld, getExplosionResistance, getExtendedProperties, getEyeHeight, getFlag, getHorizontalFacing, getHoverEvent, getInventory, getLook, getLookVec, getMaxFallHeight, getMaxInPortalTime, getNBTTagCompound, getParts, getPersistentID, getPickedResult, getPortalCooldown, getPosition, getPositionEyes, getPositionVector, getRotationYawHead, getSplashSound, getSwimSound, getUniqueID, getVectorForRotation, getYOffset, handleStatusUpdate, handleWaterMovement, hashCode, hitByEntity, interactAt, isBurning, isCreatureType, isEating, isEntityAlive, isEntityEqual, isEntityInsideOpaqueBlock, isEntityInvulnerable, isImmuneToExplosions, isImmuneToFire, isInLava, isInRangeToRender3d, isInRangeToRenderDist, isInsideOfMaterial, isInvisible, isInvisibleToPlayer, isInWater, isOffsetPositionInLiquid, isOutsideBorder, isPushedByWater, isRiding, isSilent, isSneaking, isSpectatedByPlayer, isSprinting, isWet, kill, mountEntity, moveEntity, moveFlying, moveToBlockPosAndAngles, newDoubleNBTList, newFloatNBTList, onChunkLoad, onCollideWithPlayer, onDataWatcherUpdate, onEntityUpdate, onKillCommand, onKillEntity, onStruckByLightning, playSound, playStepSound, preparePlayerToSpawn, pushOutOfBlocks, rayTrace, readFromNBT, registerExtendedProperties, replaceItemInInventory, resetEntityId, resetHeight, sendCommandFeedback, serializeNBT, setAir, setAlwaysRenderNameTag, setAngles, setBeenAttacked, setCommandStat, setCurrentItemOrArmor, setEating, setEntityBoundingBox, setEntityId, setFire, setFlag, setInvisible, setInWeb, setLocationAndAngles, setOnFireFromLava, setOutsideBorder, setPortal, setPositionAndRotation, setPositionAndUpdate, setRotation, setRotationYawHead, setSilent, setSize, setSneaking, setSprinting, setWorld, shouldDismountInWater, shouldRenderInPass, shouldRiderSit, shouldSetPosAfterLoading, spawnRunningParticles, toString, updateFallState, updateRidden, updateRiderPosition, verifyExplosion, writeMountToNBT, writeToNBT, writeToNBTOptionalclone, finalize, getClass, notify, notifyAll, wait, wait, waitclear, closeInventory, decrStackSize, getField, getFieldCount, getInventoryStackLimit, getStackInSlot, isItemValidForSlot, isUseableByPlayer, markDirty, openInventory, removeStackFromSlot, setField, setInventorySlotContentsgetDisplayName, getName, hasCustomNamepublic EntityMinecartHopper(World worldIn)
public EntityMinecartHopper(World worldIn, double p_i1721_2_, double p_i1721_4_, double p_i1721_6_)
public EntityMinecart.EnumMinecartType getMinecartType()
getMinecartType in class EntityMinecartpublic IBlockState getDefaultDisplayTile()
getDefaultDisplayTile in class EntityMinecartpublic int getDefaultDisplayTileOffset()
getDefaultDisplayTileOffset in class EntityMinecartpublic int getSizeInventory()
getSizeInventory in interface IInventorypublic boolean interactFirst(EntityPlayer playerIn)
interactFirst in class EntityMinecartContainerpublic void onActivatorRailPass(int x,
int y,
int z,
boolean receivingPower)
onActivatorRailPass in class EntityMinecartpublic boolean getBlocked()
public void setBlocked(boolean p_96110_1_)
public World getWorld()
public double getXPos()
public double getYPos()
public double getZPos()
public void onUpdate()
onUpdate in class EntityMinecartpublic boolean func_96112_aD()
public void killMinecart(DamageSource p_94095_1_)
killMinecart in class EntityMinecartContainerprotected void writeEntityToNBT(NBTTagCompound tagCompound)
writeEntityToNBT in class EntityMinecartContainerprotected void readEntityFromNBT(NBTTagCompound tagCompund)
readEntityFromNBT in class EntityMinecartContainerpublic void setTransferTicker(int p_98042_1_)
public boolean canTransfer()
public java.lang.String getGuiID()
getGuiID in interface IInteractionObjectpublic Container createContainer(InventoryPlayer playerInventory, EntityPlayer playerIn)
createContainer in interface IInteractionObject