Class StarSystem
java.lang.Object
io.github.addoncommunity.galactifun.api.universe.UniversalObject
io.github.addoncommunity.galactifun.api.universe.StarSystem
A star system filled with celestial objects
-
Field Summary
Fields inherited from class UniversalObject
id, orbitLevel -
Constructor Summary
ConstructorsConstructorDescriptionStarSystem(String name, StarSystemType type, Orbit orbit, Galaxy orbiting, org.bukkit.inventory.ItemStack baseItem) -
Method Summary
Modifier and TypeMethodDescriptiondoubledistanceTo(UniversalObject other) Gets the distance in light years between 2 objects
-
Constructor Details
-
StarSystem
public StarSystem(String name, StarSystemType type, Orbit orbit, Galaxy orbiting, org.bukkit.inventory.ItemStack baseItem)
-
-
Method Details
-
distanceTo
Description copied from class:UniversalObjectGets the distance in light years between 2 objects- Overrides:
distanceToin classUniversalObject
-