Package net.minecraft.item
Class MusicDiscItem
java.lang.Object
net.minecraft.item.Item
net.minecraft.item.MusicDiscItem
- Mappings:
Namespace Name official accintermediary net/minecraft/class_1082named net/minecraft/item/MusicDiscItem
-
Field Summary
FieldsFields inherited from class net.minecraft.item.Item
ATTACK_DAMAGE_MODIFIER_UUID, damageable, field_6201, field_6941, handheld, maxCount, RANDOM, REGISTRY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidappendTooltip(ItemStack stack, PlayerEntity player, List lines, boolean advanced) static MusicDiscItemReturns the rarity of the current Item.method_3343(int int2) booleanmethod_3355(ItemStack itemStack, PlayerEntity playerEntity, World world, int int2, int int3, int int4, int int5, float float2, float float3, float float4) Methods inherited from class net.minecraft.item.Item
appendItemStacks, byRawId, canRepair, canUseOnEntity, fromBlock, getAttributeModifierMap, getDisplayColor, getDisplayName, getEnchantability, getFromId, getItemGroup, getItemstackTranslatedName, getMaxCount, getMaxDamage, getMaxUseTime, getMeta, getMiningSpeedMultiplier, getRawId, getRecipeRemainder, getStatusEffectString, getTranslationKey, getTranslationKey, getUseAction, hasEnchantmentGlint, hasStatusEffectString, hasSubTypes, inventoryTick, isDamageable, isEffectiveOn, isEnchantable, isFood, isHandheld, isNetworkSynced, isUnbreakable, method_3356, method_3369, method_3378, method_3380, method_3397, method_5462, method_5463, method_6324, onCraft, onEntityHit, onFinishUse, onHit, onStartUse, onUseStopped, setHandheld, setItemGroup, setMaxCount, setMaxDamage, setRecipeRemainder, setStatusEffectString, setTranslationKey, setUnbreakable, setup, shouldRotate, shouldSyncNbtToClient
-
Field Details
-
records
- Mappings:
Namespace Name Mixin selector official bLacc;b:Ljava/util/Map;intermediary field_5449Lnet/minecraft/class_1082;field_5449:Ljava/util/Map;named recordsLnet/minecraft/item/MusicDiscItem;records:Ljava/util/Map;
-
recordType
- Mappings:
Namespace Name Mixin selector official aLacc;a:Ljava/lang/String;intermediary field_4392Lnet/minecraft/class_1082;field_4392:Ljava/lang/String;named recordTypeLnet/minecraft/item/MusicDiscItem;recordType:Ljava/lang/String;
-
-
Constructor Details
-
MusicDiscItem
- Mappings:
Namespace Name Mixin selector official <init>Lacc;<init>(Ljava/lang/String;)Vintermediary <init>Lnet/minecraft/class_1082;<init>(Ljava/lang/String;)Vnamed <init>Lnet/minecraft/item/MusicDiscItem;<init>(Ljava/lang/String;)V
-
-
Method Details
-
method_3343
- Overrides:
method_3343in classItem- Mappings:
Namespace Name Mixin selector official b_Labm;b_(I)Lpr;intermediary method_3343Lnet/minecraft/class_1069;method_3343(I)Lnet/minecraft/class_1557;named method_3343Lnet/minecraft/item/Item;method_3343(I)Lnet/minecraft/client/Texture;
-
method_3355
public boolean method_3355(ItemStack itemStack, PlayerEntity playerEntity, World world, int int2, int int3, int int4, int int5, float float2, float float3, float float4) - Overrides:
method_3355in classItem- Mappings:
Namespace Name Mixin selector official aLabm;a(Labo;Lxk;Lafm;IIIIFFF)Zintermediary method_3355Lnet/minecraft/class_1069;method_3355(Lnet/minecraft/class_1071;Lnet/minecraft/class_988;Lnet/minecraft/class_1150;IIIIFFF)Znamed method_3355Lnet/minecraft/item/Item;method_3355(Lnet/minecraft/item/ItemStack;Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/world/World;IIIIFFF)Z
-
appendTooltip
@Environment(CLIENT) public void appendTooltip(ItemStack stack, PlayerEntity player, List lines, boolean advanced) - Overrides:
appendTooltipin classItem- Mappings:
Namespace Name Mixin selector official aLabm;a(Labo;Lxk;Ljava/util/List;Z)Vintermediary method_3352Lnet/minecraft/class_1069;method_3352(Lnet/minecraft/class_1071;Lnet/minecraft/class_988;Ljava/util/List;Z)Vnamed appendTooltipLnet/minecraft/item/Item;appendTooltip(Lnet/minecraft/item/ItemStack;Lnet/minecraft/entity/player/PlayerEntity;Ljava/util/List;Z)V
-
getDescription
- Mappings:
Namespace Name Mixin selector official iLacc;i()Ljava/lang/String;intermediary method_4631Lnet/minecraft/class_1082;method_4631()Ljava/lang/String;named getDescriptionLnet/minecraft/item/MusicDiscItem;getDescription()Ljava/lang/String;
-
getRarity
Returns the rarity of the current Item. Used by golden apples, enchanted items and potions.- Overrides:
getRarityin classItem- Parameters:
stack- The item in an ItemStack form- Returns:
- The rarity of the ItemStack
- See Also:
-
net.minecraft.item.GoldenAppleItemPotionItem
- Mappings:
Namespace Name Mixin selector official fLabm;f(Labo;)Lacb;intermediary method_3377Lnet/minecraft/class_1069;method_3377(Lnet/minecraft/class_1071;)Lnet/minecraft/class_1081;named getRarityLnet/minecraft/item/Item;getRarity(Lnet/minecraft/item/ItemStack;)Lnet/minecraft/util/Rarity;
-
getByName
- Mappings:
Namespace Name Mixin selector official bLacc;b(Ljava/lang/String;)Lacc;intermediary method_4630Lnet/minecraft/class_1082;method_4630(Ljava/lang/String;)Lnet/minecraft/class_1082;named getByNameLnet/minecraft/item/MusicDiscItem;getByName(Ljava/lang/String;)Lnet/minecraft/item/MusicDiscItem;
-