Package de.ellpeck.rockbottom.api.item
Class TileItem
java.lang.Object
de.ellpeck.rockbottom.api.item.Item
de.ellpeck.rockbottom.api.item.BasicItem
de.ellpeck.rockbottom.api.item.TileItem
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected IItemRenderercreateRenderer(ResourceName name) voiddescribeItem(IAssetManager manager, ItemInstance instance, List<String> desc, boolean isAdvanced, boolean isRealItem) Allows items to add to the tooltipgetTile()booleanonInteractWith(IWorld world, int x, int y, TileLayer layer, double mouseX, double mouseY, AbstractPlayerEntity player, ItemInstance instance) Methods inherited from class de.ellpeck.rockbottom.api.item.BasicItem
getRendererMethods inherited from class de.ellpeck.rockbottom.api.item.Item
attacksMultipleEntities, canHoldButtonToAttack, getAttackCooldown, getAttackDamage, getCustomAttackableEntities, getDespawnTime, getHighestPossibleMeta, getInteractionPriority, getLocalizedName, getMaxAmount, getMaxInteractionDistance, getMiningSpeed, getName, getToolProperties, getUnlocalizedName, hasToolProperty, isDataSensitive, onEntityAttack, onInteractWithDestKey, onTileBroken, register, setMaxAmount, takeDamage, takeDamage, toString, useMetaAsDurability
-
Constructor Details
-
TileItem
-
-
Method Details
-
createRenderer
- Overrides:
createRendererin classBasicItem
-
getTile
-
describeItem
public void describeItem(IAssetManager manager, ItemInstance instance, List<String> desc, boolean isAdvanced, boolean isRealItem) Description copied from class:ItemAllows items to add to the tooltip- Overrides:
describeItemin classItem- Parameters:
manager- 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.
-
onInteractWith
public boolean onInteractWith(IWorld world, int x, int y, TileLayer layer, double mouseX, double mouseY, AbstractPlayerEntity player, ItemInstance instance) - Overrides:
onInteractWithin classItem
-