Class ItemMapping.ItemMappingBuilder
java.lang.Object
org.geysermc.geyser.registry.type.ItemMapping.ItemMappingBuilder
- Enclosing class:
- ItemMapping
-
Method Summary
Modifier and TypeMethodDescriptionbedrockBlockId(int bedrockBlockId)The Bedrock block runtime ID to render this item with.bedrockData(int bedrockData)bedrockId(int bedrockId)bedrockIdentifier(String bedrockIdentifier)build()customItemOptions(@NonNull List<it.unimi.dsi.fastutil.objects.ObjectIntPair<org.geysermc.geyser.api.item.custom.CustomItemOptions>> customItemOptions)hasSuspiciousStewEffect(boolean hasSuspiciousStewEffect)javaId(int javaId)javaIdentifier(String javaIdentifier)maxDamage(int maxDamage)repairMaterials(Set<String> repairMaterials)stackSize(int stackSize)toString()translationString(String translationString)
-
Method Details
-
javaIdentifier
- Returns:
this.
-
bedrockIdentifier
- Returns:
this.
-
javaId
- Returns:
this.
-
bedrockId
- Returns:
this.
-
bedrockData
- Returns:
this.
-
bedrockBlockId
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.- Returns:
this.
-
stackSize
- Returns:
this.
-
toolType
- Returns:
this.
-
toolTier
- Returns:
this.
-
translationString
- Returns:
this.
-
customItemOptions
public ItemMapping.ItemMappingBuilder customItemOptions(@NonNull List<it.unimi.dsi.fastutil.objects.ObjectIntPair<org.geysermc.geyser.api.item.custom.CustomItemOptions>> customItemOptions)- Returns:
this.
-
maxDamage
- Returns:
this.
-
repairMaterials
- Returns:
this.
-
hasSuspiciousStewEffect
- Returns:
this.
-
build
-
toString
-