java.lang.Object
io.github.sefiraat.slimetinker.items.tinkermaterials.TinkerMaterial

public class TinkerMaterial extends Object
  • Constructor Details

    • TinkerMaterial

      @ParametersAreNonnullByDefault public TinkerMaterial(String id, org.bukkit.inventory.ItemStack representativeStack, String colorHex)
  • Method Details

    • build

      public TinkerMaterial build()
    • setupTraits

      public void setupTraits()
    • registerParts

      public void registerParts()
    • setLiquidTexture

      public TinkerMaterial setLiquidTexture(@Nonnull String liquidTexture)
    • addAlloyRecipe

      public TinkerMaterial addAlloyRecipe(@Nonnull io.github.thebusybiscuit.slimefun5.api.items.SlimefunItemStack... alloyRecipe)
    • getTraitToolHead

      @Nullable public MaterialTrait getTraitToolHead()
    • setTraitToolHead

      public TinkerMaterial setTraitToolHead(@Nullable MaterialTrait traitToolHead)
    • getTraitToolBinder

      @Nullable public MaterialTrait getTraitToolBinder()
    • setTraitToolBinder

      public TinkerMaterial setTraitToolBinder(@Nullable MaterialTrait traitToolBinding)
    • getTraitToolRod

      @Nullable public MaterialTrait getTraitToolRod()
    • setTraitToolRod

      public TinkerMaterial setTraitToolRod(@Nullable MaterialTrait traitToolRod)
    • getTraitArmorPlates

      @Nullable public MaterialTrait getTraitArmorPlates()
    • setTraitArmorPlates

      public TinkerMaterial setTraitArmorPlates(@Nullable MaterialTrait traitArmorPlates)
    • getTraitArmorGambeson

      @Nullable public MaterialTrait getTraitArmorGambeson()
    • setTraitArmorGambeson

      public TinkerMaterial setTraitArmorGambeson(@Nullable MaterialTrait traitArmorGambeson)
    • getTraitArmorLinks

      @Nullable public MaterialTrait getTraitArmorLinks()
    • setTraitArmorLinks

      public TinkerMaterial setTraitArmorLinks(@Nullable MaterialTrait traitArmorLinks)
    • getFormNugget

      @Nullable public String getFormNugget()
    • setFormNugget

      public TinkerMaterial setFormNugget(@Nullable String formNugget)
    • getFormIngot

      @Nullable public String getFormIngot()
    • setFormIngot

      public TinkerMaterial setFormIngot(@Nullable String formIngot)
    • getFormBlock

      @Nullable public String getFormBlock()
    • setFormBlock

      public TinkerMaterial setFormBlock(@Nullable String formBlock)
    • getFormOre

      @Nullable public String getFormOre()
    • setFormOre

      public TinkerMaterial setFormOre(@Nullable String formOre)
    • getFormGem

      @Nullable public String getFormGem()
    • setFormGem

      public TinkerMaterial setFormGem(@Nullable String formGem)
    • getFormDust

      @Nullable public String getFormDust()
    • setFormDust

      public TinkerMaterial setFormDust(@Nullable String formDust)
    • getFormBoots

      @Nullable public String getFormBoots()
    • setFormBoots

      public TinkerMaterial setFormBoots(@Nullable String formBoots)
    • getFormLeggings

      @Nullable public String getFormLeggings()
    • setFormLeggings

      public TinkerMaterial setFormLeggings(@Nullable String formLeggings)
    • getFormChestplate

      @Nullable public String getFormChestplate()
    • setFormChestplate

      public TinkerMaterial setFormChestplate(@Nullable String formChestplate)
    • getFormHelmet

      @Nullable public String getFormHelmet()
    • setFormHelmet

      public TinkerMaterial setFormHelmet(@Nullable String formHelmet)
    • getColor

      public net.md_5.bungee.api.ChatColor getColor()
    • getLiquidItemStack

      public io.github.thebusybiscuit.slimefun5.api.items.SlimefunItemStack getLiquidItemStack(int amount)
    • getId

      public String getId()
    • getLiquidTexture

      public String getLiquidTexture()
    • getRepresentativeStack

      public org.bukkit.inventory.ItemStack getRepresentativeStack()
    • getAlloyRecipe

      @Nullable public io.github.thebusybiscuit.slimefun5.api.items.SlimefunItemStack[] getAlloyRecipe()
    • getCmLiquid

      @Nullable public Liquid getCmLiquid()
    • getCmAlloy

      @Nullable public Alloy getCmAlloy()
    • runEvent

      @ParametersAreNonnullByDefault public void runEvent(TraitEventType type, TraitPartType part, EventFriend friend)
      Runs an event based on the type of event the listener is requesting and the tool part. If an event does not exist, nothing happens.
      Parameters:
      type - "The type of event that will be triggered. Different cmEventMap can fire based on the listener (tick event) raising
      part - "The tool part to be tested against this material type"
      friend - "The EventFriend to be carried through the cmEventMap to the settle phase"