Package org.cloudburstmc.server.item
Class ItemPalette
java.lang.Object
org.cloudburstmc.server.item.ItemPalette
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCreativeItem(CloudItemStack item)intaddItem(org.cloudburstmc.api.util.Identifier identifier)org.cloudburstmc.api.util.IdentifierfromLegacy(int legacyId, int meta)com.nukkitx.protocol.bedrock.packet.CreativeContentPacketList<com.nukkitx.protocol.bedrock.data.inventory.ItemData>org.cloudburstmc.api.util.IdentifiergetIdByRuntime(int runtimeId)org.cloudburstmc.api.util.IdentifiergetIdByRuntime(int runtimeId, int meta)com.google.common.collect.ImmutableList<org.cloudburstmc.api.util.Identifier>List<com.nukkitx.protocol.bedrock.packet.StartGamePacket.ItemEntry>intgetRuntimeId(org.cloudburstmc.api.util.Identifier id)intgetRuntimeId(org.cloudburstmc.api.util.Identifier id, int meta)void
-
Constructor Details
-
ItemPalette
-
-
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
-
getItemIds
public com.google.common.collect.ImmutableList<org.cloudburstmc.api.util.Identifier> getItemIds() -
addCreativeItem
-
fromLegacy
public org.cloudburstmc.api.util.Identifier fromLegacy(int legacyId, int meta) -
registerVanillaCreativeItems
public void registerVanillaCreativeItems() -
getCreativeItems
-