public class TileItem extends BasicItem
| Constructor and Description |
|---|
TileItem(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,
AbstractPlayerEntity player,
ItemInstance instance) |
getRendererattacksMultipleEntities, canHoldButtonToAttack, getAttackCooldown, getAttackDamage, getCustomAttackableEntities, getDespawnTime, getHighestPossibleMeta, getInteractionPriority, getLocalizedName, getMaxAmount, getMaxInteractionDistance, getMiningSpeed, getName, getToolProperties, getUnlocalizedName, hasToolProperty, isDataSensitive, onEntityAttack, onInteractWithDestKey, onTileBroken, register, setMaxAmount, takeDamage, takeDamage, toString, useMetaAsDurabilitypublic TileItem(ResourceName name)
protected IItemRenderer createRenderer(ResourceName name)
createRenderer in class BasicItempublic 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, AbstractPlayerEntity player, ItemInstance instance)
onInteractWith in class Item