Class GoatHornItem

java.lang.Object
org.geysermc.geyser.item.type.Item
org.geysermc.geyser.item.type.GoatHornItem

public class GoatHornItem extends Item
  • Constructor Details

  • Method Details

    • translateToBedrock

      public org.cloudburstmc.protocol.bedrock.data.inventory.ItemData.Builder translateToBedrock(GeyserSession session, int count, org.geysermc.mcprotocollib.protocol.data.game.item.component.DataComponents components, ItemMapping mapping, ItemMappings mappings)
      Overrides:
      translateToBedrock in class Item
    • translateComponentsToBedrock

      public void translateComponentsToBedrock(@NonNull GeyserSession session, @NonNull org.geysermc.mcprotocollib.protocol.data.game.item.component.DataComponents components, @NonNull BedrockItemBuilder builder)
      Description copied from class: Item
      Takes components from Java Edition and map them into Bedrock.
      Overrides:
      translateComponentsToBedrock in class Item
    • translateToJava

      public @NonNull GeyserItemStack translateToJava(GeyserSession session, @NonNull org.cloudburstmc.protocol.bedrock.data.inventory.ItemData itemData, @NonNull ItemMapping mapping, @NonNull ItemMappings mappings)
      Overrides:
      translateToJava in class Item
    • ignoreDamage

      public boolean ignoreDamage()
      Description copied from class: Item
      Override if the Bedrock equivalent of an item uses damage for extra data, and should not be tracked when translating an item.
      Overrides:
      ignoreDamage in class Item