Class ItemMapping
java.lang.Object
org.geysermc.geyser.registry.type.ItemMapping
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbuilder()booleanintThe Bedrock block runtime ID to render this item with.intint@NonNull List<it.unimi.dsi.fastutil.objects.ObjectIntPair<org.geysermc.geyser.api.item.custom.CustomItemOptions>>intintintinthashCode()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
-
getJavaIdentifier
-
getBedrockIdentifier
-
getJavaId
public int getJavaId() -
getBedrockId
public int getBedrockId() -
getBedrockData
public int getBedrockData() -
getBedrockBlockId
public int getBedrockBlockId()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. -
getStackSize
public int getStackSize() -
getToolType
-
getToolTier
-
getTranslationString
-
getCustomItemOptions
public @NonNull List<it.unimi.dsi.fastutil.objects.ObjectIntPair<org.geysermc.geyser.api.item.custom.CustomItemOptions>> getCustomItemOptions() -
getMaxDamage
public int getMaxDamage() -
getRepairMaterials
-
isHasSuspiciousStewEffect
public boolean isHasSuspiciousStewEffect() -
toString
-
equals
-
hashCode
public int hashCode()
-