net.minecraft.world.item

public class RecordItem

extends Item

All mapped superinterfaces:

FeatureElement, ItemLike

cel
net.minecraft.world.item.RecordItem
net.minecraft.class_1813
net.minecraft.item.MusicDiscItem
net.minecraft.src.C_1408_
net.minecraft.world.item.ItemRecord

Field summary

Modifier and TypeField
private static final Map<SoundEvent, RecordItem>
a
BY_NAME
field_8901
MUSIC_DISCS
f_43032_
private final int
b
analogOutput
field_8902
comparatorOutput
f_43033_
private final SoundEvent
c
sound
field_8900
sound
f_43034_
private final int
d
lengthInTicks
field_39480
lengthInTicks
f_238749_

Constructor summary

ModifierConstructor
protected (int comparatorOutput, SoundEvent sound, Item$Properties settings, int lengthInSeconds)

Method summary

Modifier and TypeMethod
public InteractionResult
a(cfw arg0)
useOn(UseOnContext arg0)
method_7884(class_1838 arg0)
useOnBlock(ItemUsageContext arg0)
m_6225_(C_1450_ arg0)
public int
i()
getAnalogOutput()
method_8010()
getComparatorOutput()
m_43049_()
public void
a(cdt arg0, cjw arg1, List<ss> arg2, cfi arg3)
appendHoverText(ItemStack arg0, Level arg1, List<Component> arg2, TooltipFlag arg3)
method_7851(class_1799 arg0, class_1937 arg1, List<class_2561> arg2, class_1836 arg3)
appendTooltip(ItemStack arg0, World arg1, List<Text> arg2, TooltipContext arg3)
m_7373_(C_1391_ p_43044_, C_1596_ p_43045_, List<C_4996_> p_43046_, C_1431_ arg3)
public MutableComponent
j()
getDisplayName()
method_8011()
getDescription()
m_43050_()
public static RecordItem
a(aln arg0)
getBySound(SoundEvent arg0)
method_8012(class_3414 arg0)
bySound(SoundEvent sound)
m_43040_(C_123_ p_43041_)
public SoundEvent
y()
getSound()
method_8009()
getSound()
m_43051_()
public int
z()
getLengthInTicks()
method_44369()
getSongLengthInTicks()
m_43036_()