Uses of Class
me.agent.vgui.api.item.ItemBuilder
Packages that use ItemBuilder
-
Uses of ItemBuilder in me.agent.vgui.api.item
Methods in me.agent.vgui.api.item that return ItemBuilderModifier and TypeMethodDescriptionItemBuilder.amount(int amount) Sets the stack size (clamped to [1, 99]).static ItemBuilderAnItemBuilderpre-configured as a textured player head.ItemBuilder.customModelData(int data) Sets custom model data (resource-pack driven models, 1.14+).ItemBuilder.edit(Consumer<com.github.retrooper.packetevents.protocol.item.ItemStack.Builder> editor) Escape hatch: mutate the underlying PacketEvents builder directly.ItemBuilder.glow()Gives the item an enchantment glint without a visible enchantment.ItemBuilder.glow(boolean glow) Sets or removes the enchantment glint override.ItemBuilder.legacyData(int legacyData) Sets legacy item data (durability or metadata) for pre-1.13 clients.Sets the lore lines.ItemBuilder.lore(net.kyori.adventure.text.Component... lore) Sets the lore lines.ItemBuilder.name(net.kyori.adventure.text.Component name) Sets the display name.static ItemBuilderItemBuilder.of(com.github.retrooper.packetevents.protocol.item.type.ItemType type) Starts building an item of the given type with amount 1.static ItemBuilderItemBuilder.of(com.github.retrooper.packetevents.protocol.item.type.ItemType type, int amount) Starts building an item of the given type and amount (clamped to [1, 99]).ItemBuilder.skullOwner(String playerName) Sets a player-head skin by player name.ItemBuilder.skullTexture(String base64Texture) Sets a player-head texture from a base64 texture value (theValuefield of atexturesproperty, as found on skin sites).ItemBuilder.unbreakable()Marks the item unbreakable (also hides the durability bar).Methods in me.agent.vgui.api.item with parameters of type ItemBuilderModifier and TypeMethodDescriptionstatic ViewItemViewItem.clickable(ItemBuilder builder, Consumer<ClickContext> onClick) An item built from anItemBuilderthat runsonClickwhen clicked.static ViewItemViewItem.of(ItemBuilder builder) A display-only item built from anItemBuilder.