Class IronBloom

java.lang.Object
io.github.pylonmc.rebar.item.RebarItem
io.github.pylonmc.pylon.content.resources.IronBloom
All Implemented Interfaces:
io.github.pylonmc.rebar.item.base.RebarInventoryTicker, net.kyori.adventure.key.Keyed, org.bukkit.Keyed

public class IronBloom extends io.github.pylonmc.rebar.item.RebarItem implements io.github.pylonmc.rebar.item.base.RebarInventoryTicker
  • Nested Class Summary

    Nested classes/interfaces inherited from class io.github.pylonmc.rebar.item.RebarItem

    io.github.pylonmc.rebar.item.RebarItem.Companion
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final long
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     

    Fields inherited from class io.github.pylonmc.rebar.item.RebarItem

    Companion
  • Constructor Summary

    Constructors
    Constructor
    Description
    IronBloom(@NotNull org.bukkit.inventory.ItemStack stack)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    long
     
    int
    Returns a temperature between 0 and 12 inclusive.
    int
    Returns a working between -15 and 15 inclusive.
    void
    onTick(@NotNull org.bukkit.entity.Player player)
     
    void
    setDisplayGlowOn(@NotNull org.bukkit.entity.ItemDisplay display)
     
    void
    setTemperature(int temperature)
     
    void
    setWorking(int working)
     

    Methods inherited from class io.github.pylonmc.rebar.item.RebarItem

    equals, fromStack, fromStack, getAddon, getKey, getPlaceholders, getRebarBlock, getResearch, getResearchBypassPermission, getSchema, getSettings, getSettings, getStack, hashCode, isDisabled, isRebarItem, isRebarItem, place, prePlace, register, register, suppressNameWarnings

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.bukkit.Keyed

    key
  • Field Details

    • DAMAGE_INTERVAL

      public static final long DAMAGE_INTERVAL
    • UNPROTECTED_DAMAGE

      public static final int UNPROTECTED_DAMAGE
    • MAX_TEMPERATURE

      public static final int MAX_TEMPERATURE
      See Also:
    • MIN_WORKING

      public static final int MIN_WORKING
      See Also:
    • MAX_WORKING

      public static final int MAX_WORKING
      See Also:
  • Constructor Details

    • IronBloom

      public IronBloom(@NotNull @NotNull org.bukkit.inventory.ItemStack stack)
  • Method Details

    • getTemperature

      public int getTemperature()
      Returns a temperature between 0 and 12 inclusive.
    • setTemperature

      public void setTemperature(int temperature)
      Parameters:
      temperature - the temperature to set, must be between 0 and 12 inclusive.
    • getWorking

      public int getWorking()
      Returns a working between -15 and 15 inclusive.
    • setWorking

      public void setWorking(int working)
      Parameters:
      working - the working to set, must be between -15 and 15 inclusive.
    • setDisplayGlowOn

      public void setDisplayGlowOn(@NotNull @NotNull org.bukkit.entity.ItemDisplay display)
    • getBaseTickInterval

      public long getBaseTickInterval()
      Specified by:
      getBaseTickInterval in interface io.github.pylonmc.rebar.item.base.RebarInventoryTicker
    • onTick

      public void onTick(@NotNull @NotNull org.bukkit.entity.Player player)
      Specified by:
      onTick in interface io.github.pylonmc.rebar.item.base.RebarInventoryTicker