Interface NonVanillaCustomItemData.Builder
- All Superinterfaces:
CustomItemData.Builder
- Enclosing interface:
NonVanillaCustomItemData
-
Method Summary
Modifier and TypeMethodDescriptionallowOffhand(boolean allowOffhand) attackDamage(int attackDamage) build()canAlwaysEat(boolean canAlwaysEat) chargeable(boolean isChargeable) creativeCategory(int creativeCategory) creativeGroup(@Nullable String creativeGroup) customItemOptions(CustomItemOptions customItemOptions) displayHandheld(boolean displayHandheld) displayName(String displayName) edible(boolean isEdible) foil(boolean isFoil) hat(boolean isHat) identifier(String identifier) javaId(@org.checkerframework.checker.index.qual.NonNegative int javaId) maxDamage(int maxDamage) Will also set the display name and icon to the provided parameter, if it is currently not set.protectionValue(int protectionValue) renderOffsets(@Nullable CustomRenderOffsets renderOffsets) Deprecated.repairMaterials(@Nullable Set<String> repairMaterials) Deprecated, for removal: This API element is subject to removal in a future version.stackSize(@org.checkerframework.checker.index.qual.NonNegative int stackSize) textureSize(int textureSize) Deprecated.default NonVanillaCustomItemData.Buildertool(boolean isTool) Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.translationString(@Nullable String translationString)
-
Method Details
-
name
Description copied from interface:CustomItemData.BuilderWill also set the display name and icon to the provided parameter, if it is currently not set.- Specified by:
namein interfaceCustomItemData.Builder
-
identifier
-
javaId
NonVanillaCustomItemData.Builder javaId(@org.checkerframework.checker.index.qual.NonNegative int javaId) -
stackSize
NonVanillaCustomItemData.Builder stackSize(@org.checkerframework.checker.index.qual.NonNegative int stackSize) -
maxDamage
-
attackDamage
-
toolType
-
toolTier
@Deprecated(since="2.6.0", forRemoval=true) NonVanillaCustomItemData.Builder toolTier(@Nullable String toolTier) Deprecated, for removal: This API element is subject to removal in a future version.This method is deprecated for removal and will be removed in Geyser 2.13.0. -
armorType
-
protectionValue
-
translationString
-
repairMaterials
@Deprecated(since="2.6.0", forRemoval=true) NonVanillaCustomItemData.Builder repairMaterials(@Nullable Set<String> repairMaterials) Deprecated, for removal: This API element is subject to removal in a future version.This method is deprecated for removal and will be removed in Geyser 2.13.0. -
hat
-
foil
-
edible
-
canAlwaysEat
-
chargeable
-
block
-
tool
@Deprecated(since="2.1.0", forRemoval=true) default NonVanillaCustomItemData.Builder tool(boolean isTool) Deprecated, for removal: This API element is subject to removal in a future version.UsedisplayHandheld(boolean)instead.This method is deprecated for removal and will be removed in Geyser 2.13.0. -
creativeCategory
- Specified by:
creativeCategoryin interfaceCustomItemData.Builder
-
creativeGroup
- Specified by:
creativeGroupin interfaceCustomItemData.Builder
-
customItemOptions
- Specified by:
customItemOptionsin interfaceCustomItemData.Builder
-
displayName
- Specified by:
displayNamein interfaceCustomItemData.Builder
-
icon
- Specified by:
iconin interfaceCustomItemData.Builder
-
allowOffhand
- Specified by:
allowOffhandin interfaceCustomItemData.Builder
-
displayHandheld
- Specified by:
displayHandheldin interfaceCustomItemData.Builder
-
textureSize
Deprecated.- Specified by:
textureSizein interfaceCustomItemData.Builder
-
renderOffsets
@Deprecated(since="2.9.2") NonVanillaCustomItemData.Builder renderOffsets(@Nullable CustomRenderOffsets renderOffsets) Deprecated.- Specified by:
renderOffsetsin interfaceCustomItemData.Builder
-
tags
- Specified by:
tagsin interfaceCustomItemData.Builder
-
build
NonVanillaCustomItemData build()- Specified by:
buildin interfaceCustomItemData.Builder
-
displayHandheld(boolean)instead.