Package net.minecraft.src
Class EntityMinecartHopper
java.lang.Object
net.minecraft.src.Entity
net.minecraft.src.EntityMinecart
net.minecraft.src.EntityMinecartContainer
net.minecraft.src.EntityMinecartHopper
- All Implemented Interfaces:
Hopper,IInventory
-
Field Summary
Fields inherited from class net.minecraft.src.EntityMinecart
minecartItemToDropFields inherited from class net.minecraft.src.Entity
addedToChunk, boundingBox, chunkCoordX, chunkCoordY, chunkCoordZ, dataWatcher, dimension, distanceWalkedModified, distanceWalkedOnStepModified, entityCollisionReduction, entityId, fallDistance, field_70135_K, fireResistance, forceSpawn, height, hurtResistantTime, ignoreFrustumCheck, inPortal, inWater, isAirBorne, isCollided, isCollidedHorizontally, isCollidedVertically, isDead, isImmuneToFire, isInWeb, lastGroundPosX, lastGroundPosY, lastGroundPosZ, lastTickPosX, lastTickPosY, lastTickPosZ, motionX, motionY, motionZ, myEntitySize, nextBlockCheckDistance, noClip, onGround, portalCounter, posX, posY, posZ, prevDistanceWalkedModified, preventEntitySpawning, prevPosX, prevPosY, prevPosZ, prevRotationPitch, prevRotationYaw, rand, renderDistanceWeight, riddenByEntity, ridingEntity, rotationPitch, rotationYaw, serverPosX, serverPosY, serverPosZ, stepHeight, teleportDirection, ticksExisted, timeUntilPortal, velocityChanged, width, worldObj, yOffset, ySize -
Constructor Summary
ConstructorsConstructorDescriptionEntityMinecartHopper(World par1World) EntityMinecartHopper(World par1World, double par2, double par4, double par6) -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns whether the hopper cart can currently transfer an item.booleanbooleanGet whether this hopper minecart is being blocked by an activator rail.intintintReturns the number of slots in the inventory.Returns the worldObj for this tileEntity.doublegetXPos()Gets the world X position for this hopper entity.doublegetYPos()Gets the world Y position for this hopper entity.doublegetZPos()Gets the world Z position for this hopper entity.booleaninteractFirst(EntityPlayer par1EntityPlayer) First layer of player interactionvoidkillMinecart(DamageSource par1DamageSource) voidonActivatorRailPass(int par1, int par2, int par3, boolean par4) Called every tick the minecart is on an activator rail.voidonUpdate()Called to update the entity's position/logic.protected voidreadEntityFromNBT(NBTTagCompound par1NBTTagCompound) (abstract) Protected helper method to read subclass entity data from NBT.voidsetBlocked(boolean par1) Set whether this hopper minecart is being blocked by an activator rail.voidsetTransferTicker(int par1) Sets the transfer ticker, used to determine the delay between transfers.protected voidwriteEntityToNBT(NBTTagCompound par1NBTTagCompound) (abstract) Protected helper method to write subclass entity data to NBT.Methods inherited from class net.minecraft.src.EntityMinecartContainer
applyDrag, closeChest, decrStackSize, getInventoryStackLimit, getInvName, getStackInSlot, getStackInSlotOnClosing, isItemValidForSlot, isUseableByPlayer, onInventoryChanged, openChest, setDead, setInventorySlotContents, travelToDimensionMethods inherited from class net.minecraft.src.EntityMinecart
applyEntityCollision, attackEntityFrom, canBeCollidedWith, canBePushed, canCollideWithEntity, canTriggerWalking, createMinecart, entityInit, func_70489_a, func_70495_a, func_94088_b, func_95999_t, getBoundingBox, getCollisionBox, getDamage, getDefaultDisplayTileData, getDisplayTile, getDisplayTileData, getDisplayTileOffset, getEntityName, getMountedYOffset, getRollingAmplitude, getRollingDirection, getShadowSize, hasDisplayTile, isInvNameLocalized, onBlockDispenserConsume, performHurtAnimation, setDamage, setDisplayTile, setDisplayTileData, setDisplayTileOffset, setHasDisplayTile, setMinecartName, setPositionAndRotation2, setRollingAmplitude, setRollingDirection, setVelocity, updateOnTrackMethods inherited from class net.minecraft.src.Entity
addComponent, addEntityCrashInfo, addToPlayerScore, addVelocity, appliesConstantForceWhenRidingBoat, attractsLightning, canAttackWithItem, canEntityTriggerTripwire, canRenderOnFire, copyDataFrom, copyLocationAndAnglesFrom, dealFireDamage, doBlockCollisions, doesEntityApplyToSpawnCap, doesEntityApplyToSquidPossessionCap, doesEntityNotTriggerPressurePlate, doesNotDismountInWater, dropItem, dropItemWithOffset, entityDropItem, equals, extinguish, fall, flagAllWatchedObjectsDirty, flingAwayFromEntity, getAir, getAnimalKickMovementMultiplier, getBlockExplosionResistance, getBrightness, getBrightnessForRender, getCanBeHeadCrabbed, getCollisionBorderSize, getComponent, getDataWatcher, getDistance, getDistanceSq, getDistanceSqToEntity, getDistanceToEntity, getEntityString, getEyeHeight, getFlag, getHeadCrabSharedAttackTarget, getLastActiveItems, getLookVec, getMaxInPortalTime, getMaxSafePointTries, getParts, getPortalCooldown, getRotationYawHead, getTeleportDirection, getTranslatedEntityName, getUniqueID, getVisualBoundingBox, getXZDistanceSqToEntity, getYOffset, handleHealthUpdate, handleLavaMovement, handleWaterMovement, hasComponent, hashCode, hasHeadCrabbedSquid, hitByEntity, initComponents, isAffectedByMovementModifiers, isBeingRainedOn, isBurning, isEating, isEntityAlive, isEntityEqual, isEntityInsideOpaqueBlock, isEntityInsideOpaqueBlock, isEntityInsideSuffocatingBlock, isEntityInsideSuffocatingBlock, isEntityInvulnerable, isImmuneToFire, isImmuneToHeadCrabDamage, isInRangeToRenderDist, isInRangeToRenderVec3D, isInsideOfMaterial, isInvisible, isInvisibleToPlayer, isInWater, isItemEntity, isOffsetPositionInLiquid, isPushedByWater, isRiding, isSecondaryTargetForSquid, isSneaking, isSprinting, isUsingSpecialKey, isValidOngoingAttackTargetForSquid, isValidZombieSecondaryTarget, isWet, kill, mountEntity, mountEntityRemote, moveEntity, moveFlying, movementModifierWhenRidingBoat, newDoubleNBTList, newFloatNBTList, notifyOfWolfHowl, onChunkLoad, onCollideWithPlayer, onEntityUpdate, onFlungBySquidTentacle, onHeadCrabbedBySquid, onKickedByAnimal, onKillEntity, onPossessedRidingEntityDeath, onStruckByLightning, outOfUpdateRangeUpdate, playSound, playStepSound, preparePlayerToSpawn, pushOutOfBlocks, readFromNBT, setAir, setAngles, setBeenAttacked, setCurrentItemOrArmor, setEating, setFire, setFlag, setInPortal, setInvisible, setInWeb, setLocationAndAngles, setOnFireFromLava, setPosition, setPositionAndRotation, setRotation, setRotationYawHead, setSize, setSneaking, setSprinting, setWorld, shouldExplodeBlock, shouldSetPosAfterLoading, shouldSetPositionOnLoad, toString, tryToSetFireToBlocksInContact, updateCloak, updateFallState, updateRidden, updateRiderPosition, writeMountToNBT, writeToNBT, writeToNBTOptionalMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.src.IInventory
closeChest, decrStackSize, getInventoryStackLimit, getInvName, getStackInSlot, getStackInSlotOnClosing, isInvNameLocalized, isItemValidForSlot, isUseableByPlayer, onInventoryChanged, openChest, setInventorySlotContents
-
Constructor Details
-
EntityMinecartHopper
-
EntityMinecartHopper
-
-
Method Details
-
getMinecartType
public int getMinecartType()- Specified by:
getMinecartTypein classEntityMinecart
-
getDefaultDisplayTile
- Overrides:
getDefaultDisplayTilein classEntityMinecart
-
getDefaultDisplayTileOffset
public int getDefaultDisplayTileOffset()- Overrides:
getDefaultDisplayTileOffsetin classEntityMinecart
-
getSizeInventory
public int getSizeInventory()Returns the number of slots in the inventory.- Specified by:
getSizeInventoryin interfaceIInventory
-
interactFirst
First layer of player interaction- Overrides:
interactFirstin classEntityMinecartContainer
-
onActivatorRailPass
public void onActivatorRailPass(int par1, int par2, int par3, boolean par4) Called every tick the minecart is on an activator rail.- Overrides:
onActivatorRailPassin classEntityMinecart
-
getBlocked
public boolean getBlocked()Get whether this hopper minecart is being blocked by an activator rail. -
setBlocked
public void setBlocked(boolean par1) Set whether this hopper minecart is being blocked by an activator rail. -
getWorldObj
Returns the worldObj for this tileEntity.- Specified by:
getWorldObjin interfaceHopper
-
getXPos
public double getXPos()Gets the world X position for this hopper entity. -
getYPos
public double getYPos()Gets the world Y position for this hopper entity. -
getZPos
public double getZPos()Gets the world Z position for this hopper entity. -
onUpdate
public void onUpdate()Called to update the entity's position/logic.- Overrides:
onUpdatein classEntityMinecart
-
func_96112_aD
public boolean func_96112_aD() -
killMinecart
- Overrides:
killMinecartin classEntityMinecartContainer
-
writeEntityToNBT
(abstract) Protected helper method to write subclass entity data to NBT.- Overrides:
writeEntityToNBTin classEntityMinecartContainer
-
readEntityFromNBT
(abstract) Protected helper method to read subclass entity data from NBT.- Overrides:
readEntityFromNBTin classEntityMinecartContainer
-
setTransferTicker
public void setTransferTicker(int par1) Sets the transfer ticker, used to determine the delay between transfers. -
canTransfer
public boolean canTransfer()Returns whether the hopper cart can currently transfer an item.
-