Package net.minecraft.item
Class MusicDiscItem
java.lang.Object
net.minecraft.item.Item
net.minecraft.item.MusicDiscItem
public class MusicDiscItem extends Item
- Mappings:
Namespace Name official aakintermediary net/minecraft/class_13named net/minecraft/item/MusicDiscItem
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.item.Item
Item.ToolMaterialType -
Field Summary
Fields Modifier and Type Field Description private static Map<String,MusicDiscItem>recordsStringrecordTypeFields inherited from class net.minecraft.item.Item
ATTACK_DAMAGE_MODIFIER_UUID, damageable, handheld, maxCount, RANDOM, REGISTRY -
Constructor Summary
Constructors Modifier Constructor Description protectedMusicDiscItem(String recordType) -
Method Summary
Modifier and Type Method Description voidappendTooltip(ItemStack stack, PlayerEntity player, List<String> lines, boolean advanced)static MusicDiscItemgetByName(String name)StringgetDescription()RaritygetRarity(ItemStack stack)Returns the rarity of the current Item.booleanuse(ItemStack itemStack, PlayerEntity player, World world, BlockPos pos, Direction direction, float facingX, float facingY, float facingZ)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, onBlockBroken, onCraft, onEntityHit, onFinishUse, onHit, onStartUse, onUseStopped, postProcessTag, registerBlockItem, setHandheld, setItemGroup, setMaxCount, setMaxDamage, setRecipeRemainder, setStatusEffectString, setTranslationKey, setUnbreakable, setup, shouldRotate, shouldSyncTagToClient
-
Field Details
-
records
- Mappings:
Namespace Name Mixin selector official bLaak;b:Ljava/util/Map;intermediary field_49Lnet/minecraft/class_13;field_49:Ljava/util/Map;named recordsLnet/minecraft/item/MusicDiscItem;records:Ljava/util/Map;
-
recordType
- Mappings:
Namespace Name Mixin selector official aLaak;a:Ljava/lang/String;intermediary field_48Lnet/minecraft/class_13;field_48:Ljava/lang/String;named recordTypeLnet/minecraft/item/MusicDiscItem;recordType:Ljava/lang/String;
-
-
Constructor Details
-
MusicDiscItem
- Mappings:
Namespace Name Mixin selector official <init>Laak;<init>(Ljava/lang/String;)Vintermediary <init>Lnet/minecraft/class_13;<init>(Ljava/lang/String;)Vnamed <init>Lnet/minecraft/item/MusicDiscItem;<init>(Ljava/lang/String;)V
-
-
Method Details
-
use
public boolean use(ItemStack itemStack, PlayerEntity player, World world, BlockPos pos, Direction direction, float facingX, float facingY, float facingZ)- Overrides:
usein classItem- Mappings:
Namespace Name Mixin selector official aLzw;a(Lzx;Lwn;Ladm;Lcj;Lcq;FFF)Zintermediary method_8264Lnet/minecraft/class_2054;method_8264(Lnet/minecraft/class_2056;Lnet/minecraft/class_1963;Lnet/minecraft/class_99;Lnet/minecraft/class_1372;Lnet/minecraft/class_1383;FFF)Znamed useLnet/minecraft/item/Item;use(Lnet/minecraft/item/ItemStack;Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;FFF)Z
-
appendTooltip
@Environment(CLIENT) public void appendTooltip(ItemStack stack, PlayerEntity player, List<String> lines, boolean advanced)- Overrides:
appendTooltipin classItem- Mappings:
Namespace Name Mixin selector official aLzw;a(Lzx;Lwn;Ljava/util/List;Z)Vintermediary method_8265Lnet/minecraft/class_2054;method_8265(Lnet/minecraft/class_2056;Lnet/minecraft/class_1963;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 gLaak;g()Ljava/lang/String;intermediary method_21Lnet/minecraft/class_13;method_21()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.GoldenAppleItem,PotionItem- Mappings:
Namespace Name Mixin selector official gLzw;g(Lzx;)Laaj;intermediary method_8290Lnet/minecraft/class_2054;method_8290(Lnet/minecraft/class_2056;)Lnet/minecraft/class_12;named getRarityLnet/minecraft/item/Item;getRarity(Lnet/minecraft/item/ItemStack;)Lnet/minecraft/util/Rarity;
-
getByName
- Mappings:
Namespace Name Mixin selector official bLaak;b(Ljava/lang/String;)Laak;intermediary method_20Lnet/minecraft/class_13;method_20(Ljava/lang/String;)Lnet/minecraft/class_13;named getByNameLnet/minecraft/item/MusicDiscItem;getByName(Ljava/lang/String;)Lnet/minecraft/item/MusicDiscItem;
-