public class ItemTile extends ItemBasic
| Constructor and Description |
|---|
ItemTile(ResourceName name) |
| Modifier and Type | Method and Description |
|---|---|
protected IItemRenderer |
createRenderer(ResourceName name) |
void |
describeItem(IAssetManager manager,
ItemInstance instance,
java.util.List<java.lang.String> desc,
boolean isAdvanced,
boolean isRealItem)
Allows items to add to the tooltip
|
Tile |
getTile() |
boolean |
onInteractWith(IWorld world,
int x,
int y,
TileLayer layer,
double mouseX,
double mouseY,
AbstractEntityPlayer player,
ItemInstance instance) |
getRendererattacksMultipleEntities, canHoldButtonToAttack, getAttackCooldown, getAttackDamage, getCustomAttackableEntities, getDespawnTime, getHighestPossibleMeta, getInteractionPriority, getLocalizedName, getMaxAmount, getMaxInteractionDistance, getMiningSpeed, getName, getToolProperties, getUnlocalizedName, isDataSensitive, onEntityAttack, onInteractWithDestKey, onTileBroken, register, setMaxAmount, takeDamage, takeDamage, toString, useMetaAsDurabilitypublic ItemTile(ResourceName name)
protected IItemRenderer createRenderer(ResourceName name)
createRenderer in class ItemBasicpublic Tile getTile()
public void describeItem(IAssetManager manager, ItemInstance instance, java.util.List<java.lang.String> desc, boolean isAdvanced, boolean isRealItem)
ItemdescribeItem in class Itemmanager - The asset managerinstance - The item that is being describeddesc - The item description. You can add to this list or replace it.isAdvanced - If the player is holding SHIFT to view advanced infoisRealItem - Does the player actually own this item or is it a preview in a GUI?
Used by tools to display durability descriptors only on real items.public boolean onInteractWith(IWorld world, int x, int y, TileLayer layer, double mouseX, double mouseY, AbstractEntityPlayer player, ItemInstance instance)
onInteractWith in class Item