Package net.minecraft.entity.item
Class EntityMinecartHopper
- java.lang.Object
-
- net.zxmushroom63.plugins.BaseData
-
- net.zxmushroom63.plugins.PluginData
-
- net.minecraft.entity.Entity
-
- net.minecraft.entity.item.EntityMinecart
-
- net.minecraft.entity.item.EntityMinecartContainer
-
- net.minecraft.entity.item.EntityMinecartHopper
-
- All Implemented Interfaces:
IInventory
,IHopper
,IInteractionObject
,ILockableContainer
,IWorldNameable
,org.teavm.jso.JSObject
public class EntityMinecartHopper extends EntityMinecartContainer implements IHopper
+ This portion of EaglercraftX contains deobfuscated Minecraft 1.8 source code. Minecraft 1.8.8 bytecode is (c) 2015 Mojang AB. "Do not distribute!" Mod Coder Pack v9.18 deobfuscation configs are (c) Copyright by the MCP Team EaglercraftX 1.8 patch files are (c) 2022-2023 LAX1DUDE. All Rights Reserved. WITH THE EXCEPTION OF PATCH FILES, MINIFIED JAVASCRIPT, AND ALL FILES NORMALLY FOUND IN AN UNMODIFIED MINECRAFT RESOURCE PACK, YOU ARE NOT ALLOWED TO SHARE, DISTRIBUTE, OR REPURPOSE ANY FILE USED BY OR PRODUCED BY THE SOFTWARE IN THIS REPOSITORY WITHOUT PRIOR PERMISSION FROM THE PROJECT AUTHOR. NOT FOR COMMERCIAL OR MALICIOUS USE (please read the 'LICENSE' file this repo's root directory for more info)
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.minecraft.entity.item.EntityMinecart
EntityMinecart.EnumMinecartType
-
Nested classes/interfaces inherited from class net.zxmushroom63.plugins.BaseData
BaseData.BooleanCallback, BaseData.BooleanCallbackArr, BaseData.DataBooleanCallback, BaseData.DataBooleanCallbackArr, BaseData.DataDoubleCallback, BaseData.DataDoubleCallbackArr, BaseData.DataFloatCallback, BaseData.DataFloatCallbackArr, BaseData.DataIntCallback, BaseData.DataIntCallbackArr, BaseData.DataObjectCallback, BaseData.DataObjectCallbackArr, BaseData.DataStringCallback, BaseData.DataStringCallbackArr, BaseData.DataVoidCallback, BaseData.DoubleCallback, BaseData.DoubleCallbackArr, BaseData.FloatCallback, BaseData.FloatCallbackArr, BaseData.IntCallback, BaseData.IntCallbackArr, BaseData.ObjectCallback, BaseData.ObjectCallbackArr, BaseData.StringCallback, BaseData.StringCallbackArr, BaseData.VoidCallback
-
-
Field Summary
-
Fields inherited from class net.minecraft.entity.Entity
addedToChunk, chunkCoordX, chunkCoordY, chunkCoordZ, dataWatcher, dimension, distanceWalkedModified, distanceWalkedOnStepModified, entityCollisionReduction, entityUniqueID, 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 Summary
Constructors Constructor Description EntityMinecartHopper(World worldIn)
EntityMinecartHopper(World worldIn, double parDouble1, double parDouble2, double parDouble3)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canTransfer()
+ Returns whether the hopper cart can currently transfer an item.Container
createContainer(InventoryPlayer inventoryplayer, EntityPlayer entityplayer)
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 entityplayer)
+ First layer of player interactionvoid
killMinecart(DamageSource damagesource)
void
onActivatorRailPass(int var1, int var2, int var3, boolean flag)
+ Called every tick the minecart is on an activator rail.protected void
readEntityFromNBT(NBTTagCompound nbttagcompound)
+ (abstract) Protected helper method to read subclass entity data from NBT.void
setBlocked(boolean parFlag)
+ Set whether this hopper minecart is being blocked by an activator rail.void
setTransferTicker(int parInt1)
+ Sets the transfer ticker, used to determine the delay between transfers.protected void
writeEntityToNBT(NBTTagCompound nbttagcompound)
+ (abstract) Protected helper method to write subclass entity data to NBT.-
Methods inherited from class net.minecraft.entity.item.EntityMinecartContainer
applyDrag, clear, closeInventory, decrStackSize, getField, getFieldCount, getInventoryStackLimit, getLockCode, getName, getStackInSlot, isItemValidForSlot, isLocked, isUseableByPlayer, markDirty, openInventory, removeStackFromSlot, setDead, setField, setInventorySlotContents, setLockCode, travelToDimension
-
Methods inherited from class net.minecraft.entity.item.EntityMinecart
applyEntityCollision, attackEntityFrom, canBeCollidedWith, canBePushed, canTriggerWalking, entityInit, func_174899_a, func_180458_a, func_180460_a, func_70489_a, func_70495_a, getCollisionBoundingBox, getCollisionBox, getCustomNameTag, getDamage, getDisplayName, getDisplayTile, getDisplayTileOffset, getMaximumSpeed, getMountedYOffset, getRollingAmplitude, getRollingDirection, hasCustomName, hasDisplayTile, moveDerailedMinecart, onUpdate, performHurtAnimation, setCustomNameTag, setDamage, setDisplayTileOffset, setHasDisplayTile, setPosition, setPositionAndRotation2, setRollingAmplitude, setRollingDirection, setVelocity
-
Methods inherited from class net.minecraft.entity.Entity
addChatMessage, addEntityCrashInfo, addToPlayerScore, addVelocity, applyEnchantments, canAttackWithItem, canCommandSenderUseCommand, canRenderOnFire, clientUpdateEntityNBT, copyDataFromOld, copyLocationAndAnglesFrom, createRunningParticles, dealFireDamage, doBlockCollisions, doesEntityNotTriggerPressurePlate, dropItem, dropItemWithOffset, entityDropItem, equals, extinguish, fall, fromNBT, func_181012_aH, func_181013_g, func_181014_aG, func_181015_d, getAir, getAlwaysRenderNameTag, getAlwaysRenderNameTagForRender, getBrightness, getBrightnessForRender, getCollisionBorderSize, getCommandSenderEntity, getDataWatcher, getDistance, getDistanceSq, getDistanceSq, getDistanceSqToCenter, getDistanceSqToEntity, getDistanceToEntity, getEntityBoundingBox, getEntityId, getEntityString, getEntityWorld, getExplosionResistance, getEyeHeight, getFlag, getHorizontalFacing, getHoverEvent, getInventory, getLook, getLookVec, getMaxFallHeight, getMaxInPortalTime, getNBTTagCompound, getParts, getPortalCooldown, getPosition, getPositionEyes, getPositionVector, getRotationYawHead, getSplashSound, getSwimSound, getUniqueID, getVectorForRotation, getYOffset, handleStatusUpdate, handleWaterMovement, hashCode, hitByEntity, interactAt, isBurning, isEating, isEntityAlive, isEntityEqual, isEntityInsideOpaqueBlock, isEntityInvulnerable, isImmuneToExplosions, isImmuneToFire, isInLava, isInRangeToRender3d, isInRangeToRenderDist, isInsideOfMaterial, isInvisible, isInvisibleToPlayer, isInWater, isOffsetPositionInLiquid, isOutsideBorder, isPushedByWater, isRiding, isSilent, isSneaking, isSprinting, isWet, kill, loadPluginData, makePluginData, mountEntity, moveEntity, moveFlying, moveToBlockPosAndAngles, newDoubleNBTList, newFloatNBTList, onChunkLoad, onCollideWithPlayer, onDataWatcherUpdate, onEntityUpdate, onKillCommand, onKillEntity, onStruckByLightning, playSound, playStepSound, preparePlayerToSpawn, pushOutOfBlocks, rayTrace, readFromNBT, replaceItemInInventory, resetHeight, sendCommandFeedback, setAir, setAlwaysRenderNameTag, setAngles, setBeenAttacked, setCurrentItemOrArmor, setEating, setEntityBoundingBox, setEntityId, setFire, setFlag, setInvisible, setInWeb, setLocationAndAngles, setOnFireFromLava, setOutsideBorder, setPositionAndRotation, setPositionAndUpdate, setRotation, setRotationYawHead, setSilent, setSize, setSneaking, setSprinting, setWorld, shouldSetPosAfterLoading, spawnRunningParticles, toNBT, toString, updateFallState, updateRidden, updateRiderPosition, verifyExplosion, writeMountToNBT, writeToNBT, writeToNBTOptional
-
Methods inherited from class net.zxmushroom63.plugins.BaseData
execFuncBaseData, execFuncObject, execFuncString, getBaseData, getBaseDataArr, getBoolean, getBooleanArr, getByte, getByteArr, getChar, getCharArr, getDouble, getDoubleArr, getFloat, getFloatArr, getInt, getIntArr, getObject, getObjectArr, getShort, getShortArr, getString, getStringArr, has, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, setCallbackBoolean, setCallbackBooleanArr, setCallbackBooleanArrWithDataArg, setCallbackBooleanWithDataArg, setCallbackDouble, setCallbackDoubleArr, setCallbackDoubleArrWithDataArg, setCallbackDoubleWithDataArg, setCallbackFloat, setCallbackFloatArr, setCallbackFloatArrWithDataArg, setCallbackFloatWithDataArg, setCallbackInt, setCallbackIntArr, setCallbackIntArrWithDataArg, setCallbackIntWithDataArg, setCallbackObject, setCallbackObjectArr, setCallbackObjectArrWithDataArg, setCallbackObjectWithDataArg, setCallbackString, setCallbackStringArr, setCallbackStringArrWithDataArg, setCallbackStringWithDataArg, setCallbackVoid, setCallbackVoidWithDataArg, setNull
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface net.minecraft.inventory.IInventory
clear, closeInventory, decrStackSize, getField, getFieldCount, getInventoryStackLimit, getStackInSlot, isItemValidForSlot, isUseableByPlayer, markDirty, openInventory, removeStackFromSlot, setField, setInventorySlotContents
-
Methods inherited from interface net.minecraft.world.IWorldNameable
getDisplayName, getName, hasCustomName
-
-
-
-
Method Detail
-
getMinecartType
public EntityMinecart.EnumMinecartType getMinecartType()
- Specified by:
getMinecartType
in classEntityMinecart
-
getDefaultDisplayTile
public IBlockState getDefaultDisplayTile()
- Overrides:
getDefaultDisplayTile
in classEntityMinecart
-
getDefaultDisplayTileOffset
public int getDefaultDisplayTileOffset()
- Overrides:
getDefaultDisplayTileOffset
in classEntityMinecart
-
getSizeInventory
public int getSizeInventory()
+ Returns the number of slots in the inventory.- Specified by:
getSizeInventory
in interfaceIInventory
-
interactFirst
public boolean interactFirst(EntityPlayer entityplayer)
+ First layer of player interaction- Overrides:
interactFirst
in classEntityMinecartContainer
-
onActivatorRailPass
public void onActivatorRailPass(int var1, int var2, int var3, boolean flag)
+ Called every tick the minecart is on an activator rail. Args: x, y, z, is the rail receiving power- Overrides:
onActivatorRailPass
in classEntityMinecart
-
getBlocked
public boolean getBlocked()
+ Get whether this hopper minecart is being blocked by an activator rail.
-
setBlocked
public void setBlocked(boolean parFlag)
+ Set whether this hopper minecart is being blocked by an activator rail.
-
getWorld
public World getWorld()
+ Returns the worldObj for this tileEntity.
-
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.
-
func_96112_aD
public boolean func_96112_aD()
-
killMinecart
public void killMinecart(DamageSource damagesource)
- Overrides:
killMinecart
in classEntityMinecartContainer
-
writeEntityToNBT
protected void writeEntityToNBT(NBTTagCompound nbttagcompound)
+ (abstract) Protected helper method to write subclass entity data to NBT.- Overrides:
writeEntityToNBT
in classEntityMinecartContainer
-
readEntityFromNBT
protected void readEntityFromNBT(NBTTagCompound nbttagcompound)
+ (abstract) Protected helper method to read subclass entity data from NBT.- Overrides:
readEntityFromNBT
in classEntityMinecartContainer
-
setTransferTicker
public void setTransferTicker(int parInt1)
+ 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.
-
getGuiID
public java.lang.String getGuiID()
- Specified by:
getGuiID
in interfaceIInteractionObject
-
createContainer
public Container createContainer(InventoryPlayer inventoryplayer, EntityPlayer entityplayer)
- Specified by:
createContainer
in interfaceIInteractionObject
-
-