Class ItemPalette

java.lang.Object
org.cloudburstmc.server.item.ItemPalette

public class ItemPalette extends Object
  • Constructor Details

  • Method Details

    • addItem

      public int addItem(org.cloudburstmc.api.util.Identifier identifier)
    • getRuntimeId

      public int getRuntimeId(org.cloudburstmc.api.util.Identifier id)
    • getRuntimeId

      public int getRuntimeId(org.cloudburstmc.api.util.Identifier id, int meta)
    • getIdByRuntime

      public org.cloudburstmc.api.util.Identifier getIdByRuntime(int runtimeId)
    • getIdByRuntime

      public org.cloudburstmc.api.util.Identifier getIdByRuntime(int runtimeId, int meta)
    • getCreativeContentPacket

      public com.nukkitx.protocol.bedrock.packet.CreativeContentPacket getCreativeContentPacket()
    • getItemPalette

      public List<com.nukkitx.protocol.bedrock.packet.StartGamePacket.ItemEntry> getItemPalette()
    • getItemIds

      public com.google.common.collect.ImmutableList<org.cloudburstmc.api.util.Identifier> getItemIds()
    • addCreativeItem

      public void addCreativeItem(CloudItemStack item)
    • fromLegacy

      public org.cloudburstmc.api.util.Identifier fromLegacy(int legacyId, int meta)
    • registerVanillaCreativeItems

      public void registerVanillaCreativeItems()
    • getCreativeItems

      public List<com.nukkitx.protocol.bedrock.data.inventory.ItemData> getCreativeItems()