Package com.lightning.northstar.planet
Class PlanetTracker
java.lang.Object
com.lightning.northstar.planet.PlanetTracker
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondouble@Nullable PlanetDimensiongetDimensionByLevel(net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> key) @Nullable PlanetDimensiongetDimensionByLevel(net.minecraft.resources.ResourceLocation key) @Nullable PlanetDimensiongetDimensionByLevel(net.minecraft.world.level.Level level) @Nullable PlanetgetPlanetById(net.minecraft.resources.ResourceKey<PlanetProperties> key) @Nullable PlanetgetPlanetById(net.minecraft.resources.ResourceLocation key) @Nullable PlanetgetPlanetByLevel(net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> key) @Nullable PlanetgetPlanetByLevel(net.minecraft.resources.ResourceLocation key) @Nullable PlanetgetPlanetByLevel(net.minecraft.world.level.Level level) getRoots()@UnmodifiableView Map<net.minecraft.resources.ResourceLocation, GravitationalSystem> voidreloadPlanets(net.minecraft.core.RegistryAccess registryAccess) voidtick(net.minecraft.world.level.Level level, float partialTick) voidupdateOrbits(double days)
-
Constructor Details
-
PlanetTracker
public PlanetTracker()
-
-
Method Details
-
tick
public void tick(net.minecraft.world.level.Level level, float partialTick) -
updateOrbits
public void updateOrbits(double days) -
reloadPlanets
public void reloadPlanets(net.minecraft.core.RegistryAccess registryAccess) -
getDeltaDays
public double getDeltaDays() -
getPlanetById
@Nullable public @Nullable Planet getPlanetById(net.minecraft.resources.ResourceKey<PlanetProperties> key) -
getPlanetById
-
getPlanetByLevel
-
getPlanetByLevel
@Nullable public @Nullable Planet getPlanetByLevel(net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> key) -
getPlanetByLevel
-
getDimensionByLevel
@Nullable public @Nullable PlanetDimension getDimensionByLevel(net.minecraft.world.level.Level level) -
getDimensionByLevel
@Nullable public @Nullable PlanetDimension getDimensionByLevel(net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> key) -
getDimensionByLevel
@Nullable public @Nullable PlanetDimension getDimensionByLevel(net.minecraft.resources.ResourceLocation key) -
getPlanets
-
getRoots
-
getSystems
public @UnmodifiableView Map<net.minecraft.resources.ResourceLocation,GravitationalSystem> getSystems()
-