YATS/Forge Documentation
|
Public Member Functions | |
EntityMinecartContainer (World par1World) | |
EntityMinecartContainer (World par1World, double par2, double par4, double par6) | |
void | killMinecart (DamageSource par1DamageSource) |
ItemStack | getStackInSlot (int par1) |
ItemStack | decrStackSize (int par1, int par2) |
ItemStack | getStackInSlotOnClosing (int par1) |
void | setInventorySlotContents (int par1, ItemStack par2ItemStack) |
void | onInventoryChanged () |
boolean | isUseableByPlayer (EntityPlayer par1EntityPlayer) |
void | openChest () |
void | closeChest () |
boolean | isStackValidForSlot (int par1, ItemStack par2ItemStack) |
String | getInvName () |
int | getInventoryStackLimit () |
void | travelToDimension (int par1) |
void | setDead () |
boolean | interact (EntityPlayer par1EntityPlayer) |
Public Member Functions inherited from net.minecraft.entity.item.EntityMinecart | |
EntityMinecart (World par1World) | |
AxisAlignedBB | getCollisionBox (Entity par1Entity) |
AxisAlignedBB | getBoundingBox () |
boolean | canBePushed () |
EntityMinecart (World par1World, double par2, double par4, double par6) | |
double | getMountedYOffset () |
boolean | attackEntityFrom (DamageSource par1DamageSource, int par2) |
void | killMinecart (DamageSource par1DamageSource) |
void | performHurtAnimation () |
boolean | canBeCollidedWith () |
void | setDead () |
void | onUpdate () |
void | onActivatorRailPass (int par1, int par2, int par3, boolean par4) |
Vec3 | func_70495_a (double par1, double par3, double par5, double par7) |
Vec3 | func_70489_a (double par1, double par3, double par5) |
float | getShadowSize () |
void | applyEntityCollision (Entity par1Entity) |
void | setPositionAndRotation2 (double par1, double par3, double par5, float par7, float par8, int par9) |
void | setVelocity (double par1, double par3, double par5) |
void | setDamage (int par1) |
int | getDamage () |
void | setRollingAmplitude (int par1) |
int | getRollingAmplitude () |
void | setRollingDirection (int par1) |
int | getRollingDirection () |
abstract int | getMinecartType () |
Block | getDisplayTile () |
Block | getDefaultDisplayTile () |
int | getDisplayTileData () |
int | getDefaultDisplayTileData () |
int | getDisplayTileOffset () |
int | getDefaultDisplayTileOffset () |
void | setDisplayTile (int par1) |
void | setDisplayTileData (int par1) |
void | setDisplayTileOffset (int par1) |
boolean | hasDisplayTile () |
void | setHasDisplayTile (boolean par1) |
void | func_96094_a (String par1Str) |
String | getEntityName () |
boolean | isInvNameLocalized () |
String | func_95999_t () |
void | moveMinecartOnRail (int x, int y, int z, double par4) |
ItemStack | getCartItem () |
boolean | canUseRail () |
void | setCanUseRail (boolean use) |
boolean | shouldDoRailFunctions () |
boolean | isPoweredCart () |
boolean | canBeRidden () |
float | getMaxCartSpeedOnRail () |
final float | getCurrentCartSpeedCapOnRail () |
final void | setCurrentCartSpeedCapOnRail (float value) |
float | getMaxSpeedAirLateral () |
void | setMaxSpeedAirLateral (float value) |
float | getMaxSpeedAirVertical () |
void | setMaxSpeedAirVertical (float value) |
double | getDragAir () |
void | setDragAir (double value) |
double | getSlopeAdjustment () |
Public Member Functions inherited from net.minecraft.entity.Entity | |
Entity (World par1World) | |
DataWatcher | getDataWatcher () |
boolean | equals (Object par1Obj) |
int | hashCode () |
void | setDead () |
void | setPosition (double par1, double par3, double par5) |
void | setAngles (float par1, float par2) |
void | onUpdate () |
void | onEntityUpdate () |
int | getMaxInPortalTime () |
void | setFire (int par1) |
void | extinguish () |
boolean | isOffsetPositionInLiquid (double par1, double par3, double par5) |
void | moveEntity (double par1, double par3, double par5) |
void | playSound (String par1Str, float par2, float par3) |
AxisAlignedBB | getBoundingBox () |
final boolean | isImmuneToFire () |
boolean | isWet () |
boolean | isInWater () |
boolean | handleWaterMovement () |
boolean | isInsideOfMaterial (Material par1Material) |
float | getEyeHeight () |
boolean | handleLavaMovement () |
void | moveFlying (float par1, float par2, float par3) |
int | getBrightnessForRender (float par1) |
float | getBrightness (float par1) |
void | setWorld (World par1World) |
void | setPositionAndRotation (double par1, double par3, double par5, float par7, float par8) |
void | setLocationAndAngles (double par1, double par3, double par5, float par7, float par8) |
float | getDistanceToEntity (Entity par1Entity) |
double | getDistanceSq (double par1, double par3, double par5) |
double | getDistance (double par1, double par3, double par5) |
double | getDistanceSqToEntity (Entity par1Entity) |
void | onCollideWithPlayer (EntityPlayer par1EntityPlayer) |
void | applyEntityCollision (Entity par1Entity) |
void | addVelocity (double par1, double par3, double par5) |
boolean | attackEntityFrom (DamageSource par1DamageSource, int par2) |
boolean | canBeCollidedWith () |
boolean | canBePushed () |
void | addToPlayerScore (Entity par1Entity, int par2) |
boolean | addNotRiddenEntityID (NBTTagCompound par1NBTTagCompound) |
boolean | isInRangeToRenderVec3D (Vec3 par1Vec3) |
boolean | isInRangeToRenderDist (double par1) |
String | getTexture () |
boolean | addEntityID (NBTTagCompound par1NBTTagCompound) |
void | writeToNBT (NBTTagCompound par1NBTTagCompound) |
void | readFromNBT (NBTTagCompound par1NBTTagCompound) |
float | getShadowSize () |
EntityItem | dropItem (int par1, int par2) |
EntityItem | dropItemWithOffset (int par1, int par2, float par3) |
EntityItem | entityDropItem (ItemStack par1ItemStack, float par2) |
boolean | isEntityAlive () |
boolean | isEntityInsideOpaqueBlock () |
boolean | interact (EntityPlayer par1EntityPlayer) |
AxisAlignedBB | getCollisionBox (Entity par1Entity) |
void | updateRidden () |
void | updateRiderPosition () |
double | getYOffset () |
double | getMountedYOffset () |
void | mountEntity (Entity par1Entity) |
void | unmountEntity (Entity par1Entity) |
void | setPositionAndRotation2 (double par1, double par3, double par5, float par7, float par8, int par9) |
float | getCollisionBorderSize () |
Vec3 | getLookVec () |
void | setInPortal () |
int | getPortalCooldown () |
void | setVelocity (double par1, double par3, double par5) |
void | handleHealthUpdate (byte par1) |
void | performHurtAnimation () |
void | updateCloak () |
ItemStack[] | getLastActiveItems () |
void | setCurrentItemOrArmor (int par1, ItemStack par2ItemStack) |
boolean | isBurning () |
boolean | isRiding () |
boolean | isSneaking () |
void | setSneaking (boolean par1) |
boolean | isSprinting () |
void | setSprinting (boolean par1) |
boolean | isInvisible () |
boolean | func_98034_c (EntityPlayer par1EntityPlayer) |
void | setInvisible (boolean par1) |
boolean | isEating () |
void | setEating (boolean par1) |
int | getAir () |
void | setAir (int par1) |
void | onStruckByLightning (EntityLightningBolt par1EntityLightningBolt) |
void | onKillEntity (EntityLiving par1EntityLiving) |
void | setInWeb () |
String | getEntityName () |
Entity[] | getParts () |
boolean | isEntityEqual (Entity par1Entity) |
float | getRotationYawHead () |
void | setRotationYawHead (float par1) |
boolean | canAttackWithItem () |
boolean | func_85031_j (Entity par1Entity) |
String | toString () |
boolean | isEntityInvulnerable () |
void | func_82149_j (Entity par1Entity) |
void | copyDataFrom (Entity par1Entity, boolean par2) |
void | travelToDimension (int par1) |
float | func_82146_a (Explosion par1Explosion, World par2World, int par3, int par4, int par5, Block par6Block) |
boolean | func_96091_a (Explosion par1Explosion, World par2World, int par3, int par4, int par5, int par6, float par7) |
int | func_82143_as () |
int | getTeleportDirection () |
boolean | doesEntityNotTriggerPressurePlate () |
void | func_85029_a (CrashReportCategory par1CrashReportCategory) |
boolean | canRenderOnFire () |
boolean | func_96092_aw () |
String | getTranslatedEntityName () |
NBTTagCompound | getEntityData () |
boolean | shouldRiderSit () |
ItemStack | getPickedResult (MovingObjectPosition target) |
UUID | getPersistentID () |
final void | resetEntityId () |
boolean | shouldRenderInPass (int pass) |
boolean | isCreatureType (EnumCreatureType type, boolean forSpawnCount) |
String | registerExtendedProperties (String identifier, IExtendedEntityProperties properties) |
IExtendedEntityProperties | getExtendedProperties (String identifier) |
Public Member Functions inherited from net.minecraft.inventory.IInventory | |
int | getSizeInventory () |
boolean | isInvNameLocalized () |
Protected Member Functions | |
void | writeEntityToNBT (NBTTagCompound par1NBTTagCompound) |
void | readEntityFromNBT (NBTTagCompound par1NBTTagCompound) |
void | applyDrag () |
Protected Member Functions inherited from net.minecraft.entity.item.EntityMinecart | |
boolean | canTriggerWalking () |
void | entityInit () |
void | func_94088_b (double par1) |
void | updateOnTrack (int par1, int par2, int par3, double par4, double par6, int par8, int par9) |
void | applyDrag () |
Protected Member Functions inherited from net.minecraft.entity.Entity | |
void | preparePlayerToSpawn () |
void | setSize (float par1, float par2) |
void | setRotation (float par1, float par2) |
void | setOnFireFromLava () |
void | kill () |
void | doBlockCollisions () |
void | playStepSound (int par1, int par2, int par3, int par4) |
boolean | canTriggerWalking () |
void | updateFallState (double par1, boolean par3) |
void | dealFireDamage (int par1) |
void | fall (float par1) |
void | setBeenAttacked () |
final String | getEntityString () |
NBTTagList | newDoubleNBTList (double...par1ArrayOfDouble) |
NBTTagList | newFloatNBTList (float...par1ArrayOfFloat) |
boolean | getFlag (int par1) |
void | setFlag (int par1, boolean par2) |
boolean | pushOutOfBlocks (double par1, double par3, double par5) |
net.minecraft.entity.item.EntityMinecartContainer.EntityMinecartContainer | ( | World | par1World) |
net.minecraft.entity.item.EntityMinecartContainer.EntityMinecartContainer | ( | World | par1World, |
double | par2, | ||
double | par4, | ||
double | par6 | ||
) |
|
protected |
void net.minecraft.entity.item.EntityMinecartContainer.closeChest | ( | ) |
Implements net.minecraft.inventory.IInventory.
ItemStack net.minecraft.entity.item.EntityMinecartContainer.decrStackSize | ( | int | par1, |
int | par2 | ||
) |
Removes from an inventory slot (first arg) up to a specified number (second arg) of items and returns them in a new stack.
Implements net.minecraft.inventory.IInventory.
int net.minecraft.entity.item.EntityMinecartContainer.getInventoryStackLimit | ( | ) |
Returns the maximum stack size for a inventory slot. Seems to always be 64, possibly will be extended. Isn't this more of a set than a get?
Implements net.minecraft.inventory.IInventory.
String net.minecraft.entity.item.EntityMinecartContainer.getInvName | ( | ) |
Returns the name of the inventory.
Implements net.minecraft.inventory.IInventory.
ItemStack net.minecraft.entity.item.EntityMinecartContainer.getStackInSlot | ( | int | par1) |
Returns the stack in slot i
Implements net.minecraft.inventory.IInventory.
ItemStack net.minecraft.entity.item.EntityMinecartContainer.getStackInSlotOnClosing | ( | int | par1) |
When some containers are closed they call this on each slot, then drop whatever it returns as an EntityItem - like when you close a workbench GUI.
Implements net.minecraft.inventory.IInventory.
boolean net.minecraft.entity.item.EntityMinecartContainer.interact | ( | EntityPlayer | par1EntityPlayer) |
Called when a player interacts with a mob. e.g. gets milk from a cow, gets into the saddle on a pig.
boolean net.minecraft.entity.item.EntityMinecartContainer.isStackValidForSlot | ( | int | par1, |
ItemStack | par2ItemStack | ||
) |
Returns true if automation is allowed to insert the given stack (ignoring stack size) into the given slot.
Implements net.minecraft.inventory.IInventory.
boolean net.minecraft.entity.item.EntityMinecartContainer.isUseableByPlayer | ( | EntityPlayer | par1EntityPlayer) |
Do not make give this method the name canInteractWith because it clashes with Container
Implements net.minecraft.inventory.IInventory.
void net.minecraft.entity.item.EntityMinecartContainer.killMinecart | ( | DamageSource | par1DamageSource) |
void net.minecraft.entity.item.EntityMinecartContainer.onInventoryChanged | ( | ) |
Called when an the contents of an Inventory change, usually
Implements net.minecraft.inventory.IInventory.
void net.minecraft.entity.item.EntityMinecartContainer.openChest | ( | ) |
Implements net.minecraft.inventory.IInventory.
|
protectedvirtual |
(abstract) Protected helper method to read subclass entity data from NBT.
Reimplemented from net.minecraft.entity.item.EntityMinecart.
Reimplemented in net.minecraft.entity.item.EntityMinecartHopper.
void net.minecraft.entity.item.EntityMinecartContainer.setDead | ( | ) |
Will get destroyed next tick.
void net.minecraft.entity.item.EntityMinecartContainer.setInventorySlotContents | ( | int | par1, |
ItemStack | par2ItemStack | ||
) |
Sets the given item stack to the specified slot in the inventory (can be crafting or armor sections).
Implements net.minecraft.inventory.IInventory.
void net.minecraft.entity.item.EntityMinecartContainer.travelToDimension | ( | int | par1) |
Teleports the entity to another dimension. Params: Dimension number to teleport to
|
protectedvirtual |
(abstract) Protected helper method to write subclass entity data to NBT.
Reimplemented from net.minecraft.entity.item.EntityMinecart.
Reimplemented in net.minecraft.entity.item.EntityMinecartHopper.