public class EntityMinecartHopper extends EntityMinecartContainer implements Hopper
defaultDragAir, defaultMaxSpeedAirLateral, defaultMaxSpeedAirVertical
addedToChunk, boundingBox, capturedDrops, captureDrops, chunkCoordX, chunkCoordY, chunkCoordZ, cloakUrl, dimension, distanceWalkedModified, distanceWalkedOnStepModified, entityCollisionReduction, entityId, fallDistance, field_70135_K, field_98038_p, fireResistance, height, hurtResistantTime, ignoreFrustumCheck, isAirBorne, isCollided, isCollidedHorizontally, isCollidedVertically, isDead, lastTickPosX, lastTickPosY, lastTickPosZ, motionX, motionY, motionZ, myEntitySize, noClip, onGround, posX, posY, posZ, prevDistanceWalkedModified, preventEntitySpawning, prevPosX, prevPosY, prevPosZ, prevRotationPitch, prevRotationYaw, renderDistanceWeight, riddenByEntity, ridingEntity, rotationPitch, rotationYaw, serverPosX, serverPosY, serverPosZ, skinUrl, stepHeight, ticksExisted, timeUntilPortal, velocityChanged, width, worldObj, yOffset, ySize
Constructor and Description |
---|
EntityMinecartHopper(World par1World) |
EntityMinecartHopper(World par1World,
double par2,
double par4,
double par6) |
Modifier and Type | Method and Description |
---|---|
boolean |
canTransfer()
Returns whether the hopper cart can currently transfer an item.
|
boolean |
func_96112_aD() |
boolean |
getBlocked()
Get whether this hopper minecart is being blocked by an activator rail.
|
Block |
getDefaultDisplayTile() |
int |
getDefaultDisplayTileOffset() |
int |
getMinecartType() |
int |
getSizeInventory()
Returns the number of slots in the inventory.
|
World |
getWorldObj()
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 |
interact(EntityPlayer par1EntityPlayer)
Called when a player interacts with a mob.
|
void |
killMinecart(DamageSource par1DamageSource) |
void |
onActivatorRailPass(int par1,
int par2,
int par3,
boolean par4)
Called every tick the minecart is on an activator rail.
|
void |
onUpdate()
Called to update the entity's position/logic.
|
void |
setBlocked(boolean par1)
Set whether this hopper minecart is being blocked by an activator rail.
|
void |
setTransferTicker(int par1)
Sets the transfer ticker, used to determine the delay between transfers.
|
closeChest, decrStackSize, getInventoryStackLimit, getInvName, getStackInSlot, getStackInSlotOnClosing, isStackValidForSlot, isUseableByPlayer, onInventoryChanged, openChest, setDead, setInventorySlotContents, travelToDimension
applyEntityCollision, attackEntityFrom, canBeCollidedWith, canBePushed, canBeRidden, canUseRail, createMinecart, func_70489_a, func_70495_a, func_95999_t, func_96094_a, getBoundingBox, getCartItem, getCollisionBox, getCollisionHandler, getCurrentCartSpeedCapOnRail, getDamage, getDefaultDisplayTileData, getDisplayTile, getDisplayTileData, getDisplayTileOffset, getDragAir, getEntityName, getMaxCartSpeedOnRail, getMaxSpeedAirLateral, getMaxSpeedAirVertical, getMountedYOffset, getRollingAmplitude, getRollingDirection, getShadowSize, getSlopeAdjustment, hasDisplayTile, isInvNameLocalized, isPoweredCart, moveMinecartOnRail, performHurtAnimation, setCanUseRail, setCollisionHandler, setCurrentCartSpeedCapOnRail, setDamage, setDisplayTile, setDisplayTileData, setDisplayTileOffset, setDragAir, setHasDisplayTile, setMaxSpeedAirLateral, setMaxSpeedAirVertical, setPositionAndRotation2, setRollingAmplitude, setRollingDirection, setVelocity, shouldDoRailFunctions
addEntityID, addNotRiddenEntityID, addToPlayerScore, addVelocity, canAttackWithItem, canRenderOnFire, copyDataFrom, doesEntityNotTriggerPressurePlate, dropItem, dropItemWithOffset, entityDropItem, equals, extinguish, func_82143_as, func_82146_a, func_82149_j, func_85029_a, func_85031_j, func_96091_a, func_96092_aw, func_98034_c, getAir, getBrightness, getBrightnessForRender, getCollisionBorderSize, getDataWatcher, getDistance, getDistanceSq, getDistanceSqToEntity, getDistanceToEntity, getEntityData, getExtendedProperties, getEyeHeight, getLastActiveItems, getLookVec, getMaxInPortalTime, getParts, getPersistentID, getPickedResult, getPortalCooldown, getRotationYawHead, getTeleportDirection, getTexture, getTranslatedEntityName, getYOffset, handleHealthUpdate, handleLavaMovement, handleWaterMovement, hashCode, isBurning, isCreatureType, isEating, isEntityAlive, isEntityEqual, isEntityInsideOpaqueBlock, isEntityInvulnerable, isImmuneToFire, isInRangeToRenderDist, isInRangeToRenderVec3D, isInsideOfMaterial, isInvisible, isInWater, isOffsetPositionInLiquid, isRiding, isSneaking, isSprinting, isWet, mountEntity, moveEntity, moveFlying, onCollideWithPlayer, onEntityUpdate, onKillEntity, onStruckByLightning, playSound, readFromNBT, registerExtendedProperties, resetEntityId, setAir, setAngles, setCurrentItemOrArmor, setEating, setFire, setInPortal, setInvisible, setInWeb, setLocationAndAngles, setPosition, setPositionAndRotation, setRotationYawHead, setSneaking, setSprinting, setWorld, shouldRenderInPass, shouldRiderSit, toString, unmountEntity, updateCloak, updateRidden, updateRiderPosition, writeToNBT
closeChest, decrStackSize, getInventoryStackLimit, getInvName, getStackInSlot, getStackInSlotOnClosing, isInvNameLocalized, isStackValidForSlot, isUseableByPlayer, onInventoryChanged, openChest, setInventorySlotContents
public EntityMinecartHopper(World par1World)
public EntityMinecartHopper(World par1World, double par2, double par4, double par6)
public int getMinecartType()
getMinecartType
in class EntityMinecart
public Block getDefaultDisplayTile()
getDefaultDisplayTile
in class EntityMinecart
public int getDefaultDisplayTileOffset()
getDefaultDisplayTileOffset
in class EntityMinecart
public int getSizeInventory()
getSizeInventory
in interface IInventory
public boolean interact(EntityPlayer par1EntityPlayer)
interact
in class EntityMinecartContainer
public void onActivatorRailPass(int par1, int par2, int par3, boolean par4)
onActivatorRailPass
in class EntityMinecart
public boolean getBlocked()
public void setBlocked(boolean par1)
public World getWorldObj()
getWorldObj
in interface Hopper
public double getXPos()
public double getYPos()
public double getZPos()
public void onUpdate()
onUpdate
in class EntityMinecart
public boolean func_96112_aD()
public void killMinecart(DamageSource par1DamageSource)
killMinecart
in class EntityMinecartContainer
public void setTransferTicker(int par1)
public boolean canTransfer()