public class ItemRecord extends Item
Item.ToolMaterial
Modifier and Type | Field and Description |
---|---|
java.lang.String |
recordName
The name of the record.
|
private static java.util.Map<java.lang.String,ItemRecord> |
RECORDS |
bFull3D, hasSubtypes, itemModifierUUID, itemRand, itemRegistry, maxStackSize
Modifier | Constructor and Description |
---|---|
protected |
ItemRecord(java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
void |
addInformation(ItemStack stack,
EntityPlayer playerIn,
java.util.List<java.lang.String> tooltip,
boolean advanced)
allows items to add custom lines of information to the mouseover description
|
EnumRarity |
getRarity(ItemStack stack)
Return an item rarity from EnumRarity
|
static ItemRecord |
getRecord(java.lang.String name)
Return the record item corresponding to the given name.
|
java.lang.String |
getRecordNameLocal() |
boolean |
onItemUse(ItemStack stack,
EntityPlayer playerIn,
World worldIn,
BlockPos pos,
EnumFacing side,
float hitX,
float hitY,
float hitZ)
Called when a Block is right-clicked with this Item
|
canHarvestBlock, canItemEditBlocks, getByNameOrId, getColorFromItemStack, getContainerItem, getCreativeTab, getHasSubtypes, getIdFromItem, getIsRepairable, getItemAttributeModifiers, getItemById, getItemEnchantability, getItemFromBlock, getItemStackDisplayName, getItemStackLimit, getItemUseAction, getMaxDamage, getMaxItemUseDuration, getMetadata, getMovingObjectPositionFromPlayer, getPotionEffect, getShareTag, getStrVsBlock, getSubItems, getUnlocalizedName, getUnlocalizedName, getUnlocalizedNameInefficiently, hasContainerItem, hasEffect, hitEntity, isDamageable, isFull3D, isItemTool, isMap, isPotionIngredient, itemInteractionForEntity, onBlockDestroyed, onCreated, onItemRightClick, onItemUseFinish, onPlayerStoppedUsing, onUpdate, registerItemBlock, registerItems, setContainerItem, setCreativeTab, setFull3D, setHasSubtypes, setMaxDamage, setMaxStackSize, setPotionEffect, setUnlocalizedName, shouldRotateAroundWhenRendering, updateItemStackNBT
private static final java.util.Map<java.lang.String,ItemRecord> RECORDS
public final java.lang.String recordName
public boolean onItemUse(ItemStack stack, EntityPlayer playerIn, World worldIn, BlockPos pos, EnumFacing side, float hitX, float hitY, float hitZ)
public void addInformation(ItemStack stack, EntityPlayer playerIn, java.util.List<java.lang.String> tooltip, boolean advanced)
addInformation
in class Item
public java.lang.String getRecordNameLocal()
public EnumRarity getRarity(ItemStack stack)
public static ItemRecord getRecord(java.lang.String name)