Package org.bukkit.entity
Interface CopperGolem.Oxidizing
- All Known Subinterfaces:
CopperGolem.Oxidizing.AtTime
- All Known Implementing Classes:
CopperGolem.Oxidizing.Unset,CopperGolem.Oxidizing.Waxed
- Enclosing interface:
CopperGolem
public static sealed interface CopperGolem.Oxidizing
permits CopperGolem.Oxidizing.Waxed, CopperGolem.Oxidizing.Unset, CopperGolem.Oxidizing.AtTime
Represents the oxidizing state of a copper golem.
CopperGolem.Oxidizing.Waxed: the golem is waxed and will not oxidize furtherCopperGolem.Oxidizing.Unset: the golem is not waxed but has not yet had its next weathering event 'scheduled'CopperGolem.Oxidizing.AtTime: the absolute game time of the next weathering event
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceAtTime oxidizing state - the absolute game time of the next weathering event.static final classUnset oxidizing state - the golem is not waxed but has not yet had its next weathering event 'scheduled'.static final classWaxed oxidizing state - the golem is waxed and will not oxidize further. -
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic CopperGolem.Oxidizing.AtTimeatTime(@org.jetbrains.annotations.Range(from=0L, to=9223372036854775807L) long time) Creates a newCopperGolem.Oxidizing.AtTimeinstance with the given time.static CopperGolem.Oxidizingunset()Returns theCopperGolem.Oxidizing.Unsetinstance, valid for object identity comparisons.static CopperGolem.Oxidizingwaxed()Returns theCopperGolem.Oxidizing.Waxedinstance, valid for object identity comparisons.
-
Method Details
-
waxed
Returns theCopperGolem.Oxidizing.Waxedinstance, valid for object identity comparisons.- Returns:
- the waxed instance
-
unset
Returns theCopperGolem.Oxidizing.Unsetinstance, valid for object identity comparisons.- Returns:
- the unset instance
-
atTime
static CopperGolem.Oxidizing.AtTime atTime(@org.jetbrains.annotations.Range(from=0L, to=9223372036854775807L) long time) Creates a newCopperGolem.Oxidizing.AtTimeinstance with the given time.- Parameters:
time- the absolute game time of the next weathering event- Returns:
- new AtTime instance
- See Also:
-