public class ItemRecord extends Item
Item.ToolMaterial
Modifier and Type | Field and Description |
---|---|
java.lang.String |
recordName |
bFull3D, canRepair, delegate, field_111210_e, hasSubtypes, iconString, itemIcon, itemRand, itemRegistry, maxStackSize
Modifier | Constructor and Description |
---|---|
protected |
ItemRecord(java.lang.String p_i45350_1_) |
Modifier and Type | Method and Description |
---|---|
void |
addInformation(ItemStack p_77624_1_,
EntityPlayer p_77624_2_,
java.util.List p_77624_3_,
boolean p_77624_4_) |
IIcon |
getIconFromDamage(int p_77617_1_) |
EnumRarity |
getRarity(ItemStack p_77613_1_) |
static ItemRecord |
getRecord(java.lang.String p_150926_0_) |
java.lang.String |
getRecordNameLocal() |
ResourceLocation |
getRecordResource(java.lang.String name)
Retrieves the resource location of the sound to play for this record.
|
boolean |
onItemUse(ItemStack p_77648_1_,
EntityPlayer p_77648_2_,
World p_77648_3_,
int p_77648_4_,
int p_77648_5_,
int p_77648_6_,
int p_77648_7_,
float p_77648_8_,
float p_77648_9_,
float p_77648_10_) |
canHarvestBlock, canItemEditBlocks, createEntity, doesContainerItemLeaveCraftingGrid, doesSneakBypassUse, func_150893_a, func_150897_b, getArmorModel, getArmorTexture, getAttributeModifiers, getChestGenBase, getColorFromItemStack, getContainerItem, getContainerItem, getCreativeTab, getCreativeTabs, getDamage, getDigSpeed, getDisplayDamage, getDurabilityForDisplay, getEntityLifespan, getFontRenderer, getHarvestLevel, getHasSubtypes, getIcon, getIcon, getIconFromDamageForRenderPass, getIconIndex, getIconString, getIdFromItem, getIsRepairable, getItemAttributeModifiers, getItemById, getItemEnchantability, getItemEnchantability, getItemFromBlock, getItemStackDisplayName, getItemStackLimit, getItemStackLimit, getItemUseAction, getMaxDamage, getMaxDamage, getMaxItemUseDuration, getMetadata, getMovingObjectPositionFromPlayer, getPotionEffect, getRenderPasses, getShareTag, getSmeltingExperience, getSpriteNumber, getSubItems, getToolClasses, getUnlocalizedName, getUnlocalizedName, getUnlocalizedNameInefficiently, hasContainerItem, hasContainerItem, hasCustomEntity, hasEffect, hasEffect, hitEntity, isBeaconPayment, isBookEnchantable, isDamageable, isDamaged, isFull3D, isItemTool, isMap, isPotionIngredient, isRepairable, isValidArmor, itemInteractionForEntity, onArmorTick, onBlockDestroyed, onBlockStartBreak, onCreated, onDroppedByPlayer, onEaten, onEntityItemUpdate, onEntitySwing, onItemRightClick, onItemUseFirst, onLeftClickEntity, onPlayerStoppedUsing, onUpdate, onUsingTick, registerIcons, registerItems, renderHelmetOverlay, requiresMultipleRenderPasses, setContainerItem, setCreativeTab, setDamage, setFull3D, setHarvestLevel, setHasSubtypes, setMaxDamage, setMaxStackSize, setNoRepair, setPotionEffect, setTextureName, setUnlocalizedName, shouldRotateAroundWhenRendering, showDurabilityBar
public IIcon getIconFromDamage(int p_77617_1_)
getIconFromDamage
in class Item
public boolean onItemUse(ItemStack p_77648_1_, EntityPlayer p_77648_2_, World p_77648_3_, int p_77648_4_, int p_77648_5_, int p_77648_6_, int p_77648_7_, float p_77648_8_, float p_77648_9_, float p_77648_10_)
public void addInformation(ItemStack p_77624_1_, EntityPlayer p_77624_2_, java.util.List p_77624_3_, boolean p_77624_4_)
addInformation
in class Item
public java.lang.String getRecordNameLocal()
public EnumRarity getRarity(ItemStack p_77613_1_)
public static ItemRecord getRecord(java.lang.String p_150926_0_)
public ResourceLocation getRecordResource(java.lang.String name)
name
- The name of the record to play