Interface IPlatformHelper
- All Known Implementing Classes:
NeoForgePlatformHelper
public interface IPlatformHelper
-
Method Summary
Modifier and TypeMethodDescriptionintReturns the configured weight of the Bad Omen Moon event.intReturns the configured weight of the Big Moon event.intReturns the configured weight of the Blood Moon event.intReturns the configured weight of the Crimson Moon event.Map<net.minecraft.resources.ResourceLocation, net.minecraft.resources.ResourceLocation> Returns the configured Crimson Replacement Map to be used during the Crimson Moon eventintReturns the configured weight of the Eclipse Moon event.intReturns the configured weight of the Hero Moon event.floatReturns the configured chance of a Lunar Event happening.intReturns the configured weight of the Miner Moon event.intReturns the configured weight of the Tiny Moon event.intReturns the configured weight of the White Moon event.voidsyncDeltaMovement(net.minecraft.server.level.ServerPlayer player, net.minecraft.world.phys.Vec3 deltaMovement) Sync the deltaMovement to the client.voidsyncEvent(net.minecraft.server.level.ServerPlayer player, ILunarEvent event) Syncing the lunar event to a specific client.voidsyncEvent(net.minecraft.world.level.Level level, ILunarEvent event) Syncing the lunar event to the clients.
-
Method Details
-
syncEvent
Syncing the lunar event to the clients.- Parameters:
level- The level to get the players fromevent- The event that gets synced
-
syncEvent
Syncing the lunar event to a specific client.- Parameters:
player- The player it gets synced toevent- The event that gets synced
-
syncDeltaMovement
void syncDeltaMovement(net.minecraft.server.level.ServerPlayer player, net.minecraft.world.phys.Vec3 deltaMovement) Sync the deltaMovement to the client.- Parameters:
player- The player to sync todeltaMovement- The deltaMovement to sync
-
getLunarChance
float getLunarChance()Returns the configured chance of a Lunar Event happening.- Returns:
- the Lunar Event Chance
-
getBloodMoonWeight
int getBloodMoonWeight()Returns the configured weight of the Blood Moon event.- Returns:
- the Blood Moon Weight
-
getCrimsonMoonWeight
int getCrimsonMoonWeight()Returns the configured weight of the Crimson Moon event.- Returns:
- the Crimson Moon Weight
-
getMinerMoonWeight
int getMinerMoonWeight()Returns the configured weight of the Miner Moon event.- Returns:
- the Miner Moon Weight
-
getWhiteMoonWeight
int getWhiteMoonWeight()Returns the configured weight of the White Moon event.- Returns:
- the White Moon Weight
-
getBigMoonWeight
int getBigMoonWeight()Returns the configured weight of the Big Moon event.- Returns:
- the Big Moon Weight
-
getTinyMoonWeight
int getTinyMoonWeight()Returns the configured weight of the Tiny Moon event.- Returns:
- the Tiny Moon Weight
-
getBadOmenMoonWeight
int getBadOmenMoonWeight()Returns the configured weight of the Bad Omen Moon event.- Returns:
- the Bad Omen Moon Weight
-
getHeroMoonWeight
int getHeroMoonWeight()Returns the configured weight of the Hero Moon event.- Returns:
- the Hero Moon Weight
-
getEclipseMoonWeight
int getEclipseMoonWeight()Returns the configured weight of the Eclipse Moon event.- Returns:
- the Eclipse Moon Weight
-
getCrimsonReplacementMap
Map<net.minecraft.resources.ResourceLocation,net.minecraft.resources.ResourceLocation> getCrimsonReplacementMap()Returns the configured Crimson Replacement Map to be used during the Crimson Moon event- Returns:
- the configured Crimson Replacement Map.
-