Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard

Creates a new ItemStack for a GUI item, sets its pdc key and adds a custom model data string for resource packs.

Link copied to clipboard
Link copied to clipboard

The default lore language key for a Rebar item.

Link copied to clipboard

The default name language key for a Rebar item.

Link copied to clipboard

Creates a new ItemStackBuilder from stack. Any modifications made to the ItemStackBuilder will also be made to stack.

Link copied to clipboard

Creates a new ItemStack for a RebarItem by setting the name and lore to the default translation keys, and setting the item's Rebar ID to the provided key.

Link copied to clipboard

Creates a new ItemStack for a RebarItem that can be worn in the specified slot. You must provide a value for armor and armor-toughness in the Settings for the item.

Link copied to clipboard
fun rebarBoots(material: Material, key: NamespacedKey, hasDurability: Boolean): ItemStackBuilder

Creates a new ItemStack for a RebarItem that can be worn in the boots slot. You must provide a value for armor and armor-toughness in the Settings for the item.

Link copied to clipboard

Creates a new ItemStack for a RebarItem that can be worn in the chestplate slot. You must provide a value for armor and armor-toughness in the Settings for the item.

Link copied to clipboard
fun rebarHelmet(material: Material, key: NamespacedKey, hasDurability: Boolean): ItemStackBuilder

Creates a new ItemStack for a RebarItem that can be worn in the helmet slot. You must provide a value for armor and armor-toughness in the Settings for the item.

Link copied to clipboard

Creates a new ItemStack for a RebarItem that can be worn in the leggings slot. You must provide a value for armor and armor-toughness in the Settings for the item.

Link copied to clipboard
fun rebarTool(material: Material, key: NamespacedKey, mineable: RegistryKeySet<BlockType>, hasDurability: Boolean): ItemStackBuilder

Creates a new ItemStack for a RebarItem that can be used as a tool for the mineable blocks. (See pickaxeMineable and related for basic tools) You must provide a value for mining-speed and mining-durability-damage in the Settings for the item.

Link copied to clipboard
fun rebarToolWeapon(material: Material, key: NamespacedKey, mineable: RegistryKeySet<BlockType>, hasDurability: Boolean, hasKnockback: Boolean, disablesShield: Boolean): ItemStackBuilder
fun rebarToolWeapon(stack: ItemStack, key: NamespacedKey, mineable: RegistryKeySet<BlockType>, hasDurability: Boolean, hasKnockback: Boolean, disablesShield: Boolean): ItemStackBuilder

Creates a new ItemStack for a RebarItem that can be used as a weapon and tool for the mineable blocks. (See pickaxeMineable and related for basic tools) You must provide a value for attack-damage, attack-speed, attack-durability-damage, mining-speed and mining-durability-damage in the Settings for the item.

Link copied to clipboard
fun rebarWeapon(material: Material, key: NamespacedKey, hasDurability: Boolean, hasKnockback: Boolean, disablesShield: Boolean): ItemStackBuilder
fun rebarWeapon(stack: ItemStack, key: NamespacedKey, hasDurability: Boolean, hasKnockback: Boolean, disablesShield: Boolean): ItemStackBuilder

Creates a new ItemStack for a RebarItem that can be used as a weapon. You must provide a value for attack-damage, attack-speed and attack-durability-damage in the Settings for the item.

Link copied to clipboard

Mimics the NMS logic for creating base armor attributes so that they display correctly in the tooltip This key should be used for base armor, armor toughness, and knockback resistance.