类 RecordItem

java.lang.Object
net.minecraft.world.item.Item
net.minecraft.world.item.RecordItem
所有已实现的接口:
FeatureElement, ItemLike, IForgeItem

public class RecordItem extends Item
  • 字段详细资料

  • 构造器详细资料

    • RecordItem

      @Deprecated public RecordItem(int pAnalogOutput, SoundEvent pSound, Item.Properties pProperties, int pLengthInSeconds)
      已过时。
    • RecordItem

      public RecordItem(int comparatorValue, Supplier<SoundEvent> soundSupplier, Item.Properties builder, int lengthInTicks)
      For mod use, allows to create a music disc without having to create a new SoundEvent before their registry event is fired.
      参数:
      comparatorValue - The value this music disc should output on the comparator. Must be between 0 and 15.
      soundSupplier - A supplier that provides the sound that should be played. Use a RegistryObject<SoundEvent> or a Holder<SoundEvent> for this parameter.
      builder - A set of Item.Properties that describe this item.
      lengthInTicks - The length of the music disc track in ticks.
  • 方法详细资料