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
FieldsModifier and TypeFieldDescriptionstatic final longstatic final intstatic final intstatic final intstatic final intFields inherited from class io.github.pylonmc.rebar.item.RebarItem
Companion -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongintReturns a temperature between 0 and 12 inclusive.intReturns a working between -15 and 15 inclusive.voidonTick(@NotNull org.bukkit.entity.Player player) voidsetDisplayGlowOn(@NotNull org.bukkit.entity.ItemDisplay display) voidsetTemperature(int temperature) voidsetWorking(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, suppressNameWarningsMethods inherited from class Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods 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:
getBaseTickIntervalin interfaceio.github.pylonmc.rebar.item.base.RebarInventoryTicker
-
onTick
public void onTick(@NotNull @NotNull org.bukkit.entity.Player player) - Specified by:
onTickin interfaceio.github.pylonmc.rebar.item.base.RebarInventoryTicker
-