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 interface
AtTime oxidizing state - the absolute game time of the next weathering event.static final class
Unset oxidizing state - the golem is not waxed but has not yet had its next weathering event 'scheduled'.static final class
Waxed oxidizing state - the golem is waxed and will not oxidize further. -
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic CopperGolem.Oxidizing.AtTime
atTime
(@org.jetbrains.annotations.Range(from=0L, to=9223372036854775807L) long time) Creates a newCopperGolem.Oxidizing.AtTime
instance with the given time.static CopperGolem.Oxidizing
unset()
Returns theCopperGolem.Oxidizing.Unset
instance, valid for object identity comparisons.static CopperGolem.Oxidizing
waxed()
Returns theCopperGolem.Oxidizing.Waxed
instance, valid for object identity comparisons.
-
Method Details
-
waxed
Returns theCopperGolem.Oxidizing.Waxed
instance, valid for object identity comparisons.- Returns:
- the waxed instance
-
unset
Returns theCopperGolem.Oxidizing.Unset
instance, 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.AtTime
instance with the given time.- Parameters:
time
- the absolute game time of the next weathering event- Returns:
- new AtTime instance
- See Also:
-