Class PlanetaryWorld
java.lang.Object
io.github.addoncommunity.galactifun.api.universe.UniversalObject
io.github.addoncommunity.galactifun.api.universe.PlanetaryObject
io.github.addoncommunity.galactifun.api.worlds.PlanetaryWorld
- Direct Known Subclasses:
AlienWorld, Earth
Any world that can be travelled to by rockets or other means
this should only be used to allow worlds from vanilla or other plugins to be travelled to,
if you want to make your own world use
SimpleAlienWorld or AlienWorld- See Also:
-
Field Summary
Fields inherited from class UniversalObject
id, orbitLevel -
Constructor Summary
ConstructorsConstructorDescriptionPlanetaryWorld(String name, PlanetaryType type, Orbit orbit, PlanetaryObject orbiting, org.bukkit.inventory.ItemStack baseItem, DayCycle dayCycle, Atmosphere atmosphere, Gravity gravity) PlanetaryWorld(String name, PlanetaryType type, Orbit orbit, StarSystem orbiting, org.bukkit.inventory.ItemStack baseItem, DayCycle dayCycle, Atmosphere atmosphere, Gravity gravity) -
Method Summary
Modifier and TypeMethodDescriptionio.github.thebusybiscuit.slimefun5.api.SlimefunAddonaddon()final booleanenabled()final booleanprotected abstract org.bukkit.Worldfinal voidregister(io.github.thebusybiscuit.slimefun5.api.SlimefunAddon addon) voidregisterGEOResource(io.github.thebusybiscuit.slimefun5.api.geo.GEOResource resource) Set<io.github.thebusybiscuit.slimefun5.api.geo.GEOResource> org.bukkit.Worldworld()final org.bukkit.persistence.PersistentDataHolderMethods inherited from class PlanetaryObject
atmosphere, dayCycle, gravityMethods inherited from class UniversalObject
distanceTo, hashCode, id, item, name, orbit, orbiters, orbiting
-
Constructor Details
-
PlanetaryWorld
public PlanetaryWorld(String name, PlanetaryType type, Orbit orbit, StarSystem orbiting, org.bukkit.inventory.ItemStack baseItem, DayCycle dayCycle, Atmosphere atmosphere, Gravity gravity) -
PlanetaryWorld
public PlanetaryWorld(String name, PlanetaryType type, Orbit orbit, PlanetaryObject orbiting, org.bukkit.inventory.ItemStack baseItem, DayCycle dayCycle, Atmosphere atmosphere, Gravity gravity)
-
-
Method Details
-
register
public final void register(@Nonnull io.github.thebusybiscuit.slimefun5.api.SlimefunAddon addon) -
isRegistered
public final boolean isRegistered() -
loadWorld
@Nullable protected abstract org.bukkit.World loadWorld() -
worldStorage
@Nonnull public final org.bukkit.persistence.PersistentDataHolder worldStorage() -
enabled
public final boolean enabled() -
registerGEOResource
public void registerGEOResource(io.github.thebusybiscuit.slimefun5.api.geo.GEOResource resource) -
world
public org.bukkit.World world() -
addon
public io.github.thebusybiscuit.slimefun5.api.SlimefunAddon addon() -
resources
-