Class DyeableHorseArmorItem

java.lang.Object
org.geysermc.geyser.item.type.Item
org.geysermc.geyser.item.type.DyeableHorseArmorItem
All Implemented Interfaces:
DyeableLeatherItem

public class DyeableHorseArmorItem extends Item implements DyeableLeatherItem
  • Constructor Details

    • DyeableHorseArmorItem

      public DyeableHorseArmorItem(String javaIdentifier, Item.Builder builder)
  • Method Details

    • translateNbtToBedrock

      public void translateNbtToBedrock(@NonNull GeyserSession session, @NonNull com.github.steveice10.opennbt.tag.builtin.CompoundTag tag)
      Description copied from class: Item
      Takes NBT from Java Edition and converts any value that Bedrock parses differently.
      Overrides:
      translateNbtToBedrock in class Item
    • translateNbtToJava

      public void translateNbtToJava(@NonNull com.github.steveice10.opennbt.tag.builtin.CompoundTag tag, @NonNull ItemMapping mapping)
      Description copied from class: Item
      Takes NBT from Java Edition and converts any value that Bedrock parses differently.
      Do note that this method is, these days, only called in three places (as of 2023/~1.19):
      • Extra recipe loading
      • Creative menu
      • Stonecutters
      Therefore, if translation cannot be achieved for a certain item, it is not necessarily bad.
      Overrides:
      translateNbtToJava in class Item