Package net.minecraft.item
Class MusicDiscItem
java.lang.Object
net.minecraft.item.Item
net.minecraft.item.MusicDiscItem
- Mappings:
Namespace Name official afyintermediary 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 TypeMethodDescriptionvoidappendTooltip(ItemStack stack, PlayerEntity player, List<String> lines, boolean advanced) Returns the rarity of the current Item.static MusicDiscItemmethod_11401(SoundEvent soundEvent) Methods inherited from class net.minecraft.item.Item
addProperty, byRawId, 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_13648, 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 aLafy;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 bLafy;b:Lnm;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 cLafy;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 aLafh;a(Laay;Lajs;Lco;Lri;Lcv;FFF)Lrk;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;
-
appendTooltip
@Environment(CLIENT) public void appendTooltip(ItemStack stack, PlayerEntity player, List<String> lines, boolean advanced) - Overrides:
appendTooltipin classItem- Mappings:
Namespace Name Mixin selector official aLafh;a(Lafj;Laay;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 gLafy;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 gLafh;g(Lafj;)Lafx;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 aLafy;a(Lnm;)Lafy;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 hLafy;h()Lnm;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;
-