Interface CustomItemBedrockOptions.Builder
- Enclosing interface:
CustomItemBedrockOptions
public static interface CustomItemBedrockOptions.Builder
Builder for custom item bedrock options.
- Since:
- 2.9.3
-
Method Summary
Modifier and TypeMethodDescriptionallowOffhand(boolean allowOffhand) Sets if the item is allowed to be put into the offhand.build()Creates the custom item bedrock options.creativeCategory(@NonNull CreativeCategory creativeCategory) Sets the item's creative category.creativeGroup(@Nullable String creativeGroup) Sets the item's creative group.displayHandheld(boolean displayHandheld) Sets if the item should be displayed as handheld, like a tool.Sets the item's icon.protectionValue(int protectionValue) Sets the item's protection value.tag(@NonNull Identifier tag) Adds a tag to the set of bedrock tags this item has, for use in Molang.tags(@Nullable Set<Identifier> tags) Sets the item's set of bedrock tags, for use in Molang.
-
Method Details
-
icon
Sets the item's icon.- Parameters:
icon- the item's icon- Returns:
- this builder
- Since:
- 2.9.3
- See Also:
-
allowOffhand
Sets if the item is allowed to be put into the offhand.- Parameters:
allowOffhand- if the item is allowed to be put into the offhand slot- Returns:
- this builder
- Since:
- 2.9.3
- See Also:
-
displayHandheld
Sets if the item should be displayed as handheld, like a tool.- Parameters:
displayHandheld- if the item should be displayed as handheld- Returns:
- this builder
- Since:
- 2.9.3
- See Also:
-
protectionValue
Sets the item's protection value.- Parameters:
protectionValue- the item's protection value- Returns:
- this builder
- Since:
- 2.9.3
- See Also:
-
creativeCategory
Sets the item's creative category.- Parameters:
creativeCategory- the item's creative category- Returns:
- this builder
- Since:
- 2.9.3
- See Also:
-
creativeGroup
Sets the item's creative group.- Parameters:
creativeGroup- the item's creative group- Returns:
- this builder
- Since:
- 2.9.3
- See Also:
-
tag
Adds a tag to the set of bedrock tags this item has, for use in Molang.- Parameters:
tag- the tag to be added- Returns:
- this builder
- Since:
- 2.9.3
- See Also:
-
tags
Sets the item's set of bedrock tags, for use in Molang. Passnullto clear all tags.- Parameters:
tags- the tags to be set, ornullto clear all tags- Returns:
- this builder
- Since:
- 2.9.3
-
build
CustomItemBedrockOptions build()Creates the custom item bedrock options.- Returns:
- the new instance of bedrock options
- Since:
- 2.9.3
-