Package com.mrbysco.lunar.handler
Class LunarHandler
java.lang.Object
com.mrbysco.lunar.handler.LunarHandler
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic EventResultcanSleep(net.minecraft.world.entity.player.Player player, net.minecraft.core.BlockPos sleepingPos) static EventResultgetSpawnResult(net.minecraft.world.entity.MobSpawnType mobSpawnType, net.minecraft.world.entity.LivingEntity livingEntity) static voidonLevelTick(net.minecraft.world.level.Level level) Called when a level other than the overworld is tickedstatic voidonOverworldTick(net.minecraft.world.level.Level level) Called when the overworld is tickedstatic voiduponLivingSpawn(net.minecraft.world.entity.MobSpawnType mobSpawnType, net.minecraft.world.entity.LivingEntity livingEntity)
-
Constructor Details
-
LunarHandler
public LunarHandler()
-
-
Method Details
-
onOverworldTick
public static void onOverworldTick(net.minecraft.world.level.Level level) Called when the overworld is ticked- Parameters:
level- The level being ticked
-
onLevelTick
public static void onLevelTick(net.minecraft.world.level.Level level) Called when a level other than the overworld is ticked- Parameters:
level- The level being ticked
-
canSleep
public static EventResult canSleep(net.minecraft.world.entity.player.Player player, net.minecraft.core.BlockPos sleepingPos) -
getSpawnResult
public static EventResult getSpawnResult(net.minecraft.world.entity.MobSpawnType mobSpawnType, net.minecraft.world.entity.LivingEntity livingEntity) -
uponLivingSpawn
public static void uponLivingSpawn(net.minecraft.world.entity.MobSpawnType mobSpawnType, net.minecraft.world.entity.LivingEntity livingEntity)
-