Package net.minecraft.item
Class MusicDiscItem
java.lang.Object
net.minecraft.item.Item
net.minecraft.item.MusicDiscItem
- Mappings:
Namespace Name official ajfintermediary net/minecraft/class_1082named net/minecraft/item/MusicDiscItem
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.item.Item
Item.ToolMaterialType -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final SoundEventprivate final Stringprivate static final Map<SoundEvent,MusicDiscItem> Fields inherited from class net.minecraft.item.Item
ATTACK_DAMAGE_MODIFIER_UUID, ATTACK_SPEED_MODIFIER, damageable, handheld, maxCount, RANDOM, REGISTRY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidappendTooltips(ItemStack stack, World world, List<String> tooltip, TooltipContext tooltipContext) Returns the rarity of the current Item.static MusicDiscItemmethod_11401(SoundEvent soundEvent) Methods inherited from class net.minecraft.item.Item
addProperty, appendToItemGroup, byRawId, canAddTo, canRepair, fromBlock, getBlockBreakingSpeed, getDefaultStack, getDisplayName, getEnchantability, getFromId, getItemGroup, getItemstackTranslatedName, getMaxCount, getMaxDamage, getMaxUseTime, getMeta, getProperty, getRawId, getRecipeRemainder, getTranslationKey, getTranslationKey, getUseAction, hasEnchantmentGlint, hasProperties, hasSubTypes, inventoryTick, isDamageable, isEnchantable, isFood, isHandheld, isNetworkSynced, isUnbreakable, method_13649, method_3346, method_3353, method_3356, method_3359, method_3367, method_6326, onCraft, onEntityHit, onHit, postProcessNbt, registerBlockItem, setHandheld, setItemGroup, setMaxCount, setMaxDamage, setRecipeRemainder, setTranslationKey, setUnbreakable, setup, shouldRotate, shouldSyncNbtToClient
-
Field Details
-
records
- Mappings:
Namespace Name Mixin selector official aLajf;a:Ljava/util/Map;intermediary field_5449Lnet/minecraft/class_1082;field_5449:Ljava/util/Map;named recordsLnet/minecraft/item/MusicDiscItem;records:Ljava/util/Map;
-
field_12330
- Mappings:
Namespace Name Mixin selector official bLajf;b:Lqe;intermediary field_12330Lnet/minecraft/class_1082;field_12330:Lnet/minecraft/class_2926;named field_12330Lnet/minecraft/item/MusicDiscItem;field_12330:Lnet/minecraft/client/sound/SoundEvent;
-
field_12331
- Mappings:
Namespace Name Mixin selector official cLajf;c:Ljava/lang/String;intermediary field_12331Lnet/minecraft/class_1082;field_12331:Ljava/lang/String;named field_12331Lnet/minecraft/item/MusicDiscItem;field_12331:Ljava/lang/String;
-
-
Constructor Details
-
MusicDiscItem
-
-
Method Details
-
use
public ActionResult use(PlayerEntity player, World world, BlockPos pos, Hand hand, Direction direction, float x, float y, float z) - Overrides:
usein classItem- Mappings:
Namespace Name Mixin selector official aLain;a(Laed;Lamu;Let;Lub;Lfa;FFF)Lud;intermediary method_3355Lnet/minecraft/class_1069;method_3355(Lnet/minecraft/class_988;Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_2961;Lnet/minecraft/class_1354;FFF)Lnet/minecraft/class_2962;named useLnet/minecraft/item/Item;use(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/Hand;Lnet/minecraft/util/math/Direction;FFF)Lnet/minecraft/util/ActionResult;
-
appendTooltips
@Environment(CLIENT) public void appendTooltips(ItemStack stack, @Nullable World world, List<String> tooltip, TooltipContext tooltipContext) - Overrides:
appendTooltipsin classItem- Mappings:
Namespace Name Mixin selector official aLain;a(Laip;Lamu;Ljava/util/List;Lakb;)Vintermediary method_14234Lnet/minecraft/class_1069;method_14234(Lnet/minecraft/class_1071;Lnet/minecraft/class_1150;Ljava/util/List;Lnet/minecraft/class_3191;)Vnamed appendTooltipsLnet/minecraft/item/Item;appendTooltips(Lnet/minecraft/item/ItemStack;Lnet/minecraft/world/World;Ljava/util/List;Lnet/minecraft/client/TooltipContext;)V
-
getDescription
- Mappings:
Namespace Name Mixin selector official gLajf;g()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 gLain;g(Laip;)Laje;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;
-
method_11401
- Mappings:
Namespace Name Mixin selector official aLajf;a(Lqe;)Lajf;intermediary method_11401Lnet/minecraft/class_1082;method_11401(Lnet/minecraft/class_2926;)Lnet/minecraft/class_1082;named method_11401Lnet/minecraft/item/MusicDiscItem;method_11401(Lnet/minecraft/client/sound/SoundEvent;)Lnet/minecraft/item/MusicDiscItem;
-
method_11402
- Mappings:
Namespace Name Mixin selector official hLajf;h()Lqe;intermediary method_11402Lnet/minecraft/class_1082;method_11402()Lnet/minecraft/class_2926;named method_11402Lnet/minecraft/item/MusicDiscItem;method_11402()Lnet/minecraft/client/sound/SoundEvent;
-