Class ItemMapping
java.lang.Object
org.geysermc.geyser.registry.type.ItemMapping
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbuilder()booleanorg.cloudburstmc.protocol.bedrock.data.definitions.BlockDefinitionThe Bedrock block runtime ID to render this item with.intorg.cloudburstmc.protocol.bedrock.data.definitions.ItemDefinition@Nullable com.google.common.collect.SortedSetMultimap<net.kyori.adventure.key.Key,GeyserCustomMappingData> A map of item models and all of their custom items, sorted from most definition predicates to least, which is important when matching predicates.@NonNull IteminthashCode()booleanGets if this item has a translation string present.booleanisBlock()Gets if this item is a block.booleanbooleanisTool()Gets if this item is a tool.toString()
-
Field Details
-
AIR
-
-
Method Details
-
isBlock
public boolean isBlock()Gets if this item is a block.- Returns:
- if this item is a block
-
hasTranslation
public boolean hasTranslation()Gets if this item has a translation string present.- Returns:
- if this item has a translation string present
-
isTool
public boolean isTool()Gets if this item is a tool.- Returns:
- if this item is a tool
-
builder
-
getBedrockIdentifier
-
getBedrockDefinition
public org.cloudburstmc.protocol.bedrock.data.definitions.ItemDefinition getBedrockDefinition() -
getBedrockData
public int getBedrockData() -
getBedrockBlockDefinition
public org.cloudburstmc.protocol.bedrock.data.definitions.BlockDefinition getBedrockBlockDefinition()The Bedrock block runtime ID to render this item with. The specific state *does* matter in how this item is rendered and used as a crafting ingredient. Required since 1.16.220. -
getToolType
-
getTranslationString
-
getCustomItemDefinitions
public @Nullable com.google.common.collect.SortedSetMultimap<net.kyori.adventure.key.Key,GeyserCustomMappingData> getCustomItemDefinitions()A map of item models and all of their custom items, sorted from most definition predicates to least, which is important when matching predicates. -
isContainsV1Mappings
public boolean isContainsV1Mappings() -
getJavaItem
-
equals
-
hashCode
public int hashCode() -
toString
-