Interface NonVanillaCustomItemData
- All Superinterfaces:
CustomItemData
Deprecated.
Represents a completely custom item that is not based on an existing vanilla Minecraft item.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceDeprecated. -
Method Summary
Modifier and TypeMethodDescription@Nullable StringDeprecated.Gets the armor type of the item.intDeprecated.Gets the attack damage of the item.block()Deprecated.Gets the block the item places.builder()Deprecated.booleanDeprecated.Gets if the food item can always be eaten.Deprecated.Gets the java identifier for this item.booleanDeprecated.Gets if the item is chargable, like a bow.booleanisEdible()Deprecated.Gets if the item is edible.booleanisFoil()Deprecated.Gets if the item is a foil.booleanisHat()Deprecated.Gets if the item is a hat.default booleanisTool()Deprecated.UseCustomItemData.displayHandheld()instead.@org.checkerframework.checker.index.qual.NonNegative intjavaId()Deprecated.Gets the java item id of the item.intDeprecated.Gets the max damage of the item.intDeprecated.Gets the armor protection value of the item.Deprecated, for removal: This API element is subject to removal in a future version.No longer used.@org.checkerframework.checker.index.qual.NonNegative intDeprecated.Gets the stack size of the item.@Nullable StringtoolTier()Deprecated, for removal: This API element is subject to removal in a future version.no longer used@Nullable StringtoolType()Deprecated.Gets the tool type of the item.@Nullable StringDeprecated.Gets the item's translation string.Methods inherited from interface org.geysermc.geyser.api.item.custom.CustomItemData
allowOffhand, creativeCategory, creativeGroup, customItemOptions, displayHandheld, displayName, icon, name, renderOffsets, tags, textureSize
-
Method Details
-
identifier
String identifier()Deprecated.Gets the java identifier for this item.- Returns:
- The java identifier for this item.
-
javaId
@org.checkerframework.checker.index.qual.NonNegative int javaId()Deprecated.Gets the java item id of the item.- Returns:
- the java item id of the item
-
stackSize
@org.checkerframework.checker.index.qual.NonNegative int stackSize()Deprecated.Gets the stack size of the item.- Returns:
- the stack size of the item
-
maxDamage
int maxDamage()Deprecated.Gets the max damage of the item.- Returns:
- the max damage of the item
-
attackDamage
int attackDamage()Deprecated.Gets the attack damage of the item. This is purely visual, and only applied to tools- Returns:
- the attack damage of the item
-
toolType
@Nullable String toolType()Deprecated.Gets the tool type of the item.- Returns:
- the tool type of the item
-
toolTier
Deprecated, for removal: This API element is subject to removal in a future version.no longer used -
armorType
@Nullable String armorType()Deprecated.Gets the armor type of the item.- Returns:
- the armor type of the item
-
protectionValue
int protectionValue()Deprecated.Gets the armor protection value of the item.- Returns:
- the armor protection value of the item
-
translationString
@Nullable String translationString()Deprecated.Gets the item's translation string.- Returns:
- the item's translation string
-
repairMaterials
Deprecated, for removal: This API element is subject to removal in a future version.No longer used. -
isHat
boolean isHat()Deprecated.Gets if the item is a hat. This is used to determine if the item should be rendered on the player's head, and normally allow the player to equip it. This is not meant for armor.- Returns:
- if the item is a hat
-
isFoil
boolean isFoil()Deprecated.Gets if the item is a foil. This is used to determine if the item should be rendered with an enchantment glint effect.- Returns:
- if the item is a foil
-
isEdible
boolean isEdible()Deprecated.Gets if the item is edible.- Returns:
- if the item is edible
-
canAlwaysEat
boolean canAlwaysEat()Deprecated.Gets if the food item can always be eaten.- Returns:
- if the item is allowed to be eaten all the time
-
isChargeable
boolean isChargeable()Deprecated.Gets if the item is chargable, like a bow.- Returns:
- if the item should act like a chargable item
-
isTool
Deprecated.UseCustomItemData.displayHandheld()instead. Gets if the item is a tool. This is used to set the render type of the item, if the item is handheld.- Returns:
- if the item is a tool
-
block
String block()Deprecated.Gets the block the item places.- Returns:
- the block the item places
-
builder
Deprecated.
-
NonVanillaCustomItemDefinition