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(@NonNull CustomItemOptions customItemOptions) displayHandheld(boolean displayHandheld) displayName(@NonNull String displayName) edible(boolean isEdible) foil(boolean isFoil) hat(boolean isHat) identifier(@NonNull 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) repairMaterials(@Nullable Set<String> repairMaterials) stackSize(@org.checkerframework.checker.index.qual.NonNegative int stackSize) textureSize(int textureSize) default NonVanillaCustomItemData.Buildertool(boolean isTool) Deprecated.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
-
armorType
-
protectionValue
-
translationString
-
repairMaterials
-
hat
-
foil
-
edible
-
canAlwaysEat
-
chargeable
-
tool
Deprecated.UsedisplayHandheld(boolean)instead. -
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
- Specified by:
textureSizein interfaceCustomItemData.Builder
-
renderOffsets
- Specified by:
renderOffsetsin interfaceCustomItemData.Builder
-
tags
- Specified by:
tagsin interfaceCustomItemData.Builder
-
build
NonVanillaCustomItemData build()- Specified by:
buildin interfaceCustomItemData.Builder
-
displayHandheld(boolean)instead.