Class SpoilHandler

java.lang.Object
com.mrbysco.spoiled.handler.SpoilHandler

public class SpoilHandler extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static boolean
    isAreaLoaded(net.minecraft.world.level.LevelReader reader, net.minecraft.core.BlockPos center, int range)
     
    static void
    onPlayerTick(net.minecraft.world.entity.player.Player player)
     
    static net.minecraft.world.InteractionResult
    onWorldTick(net.minecraft.server.level.ServerLevel level)
     
    static void
    spoilItemInContainer(net.minecraft.world.Container container, int slot, net.minecraft.world.item.ItemStack stack, SpoilRecipe recipe, net.minecraft.core.RegistryAccess registryAccess)
     

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SpoilHandler

      public SpoilHandler()
  • Method Details

    • onWorldTick

      public static net.minecraft.world.InteractionResult onWorldTick(net.minecraft.server.level.ServerLevel level)
    • isAreaLoaded

      public static boolean isAreaLoaded(net.minecraft.world.level.LevelReader reader, net.minecraft.core.BlockPos center, int range)
    • spoilItemInContainer

      public static void spoilItemInContainer(net.minecraft.world.Container container, int slot, net.minecraft.world.item.ItemStack stack, SpoilRecipe recipe, net.minecraft.core.RegistryAccess registryAccess)
    • onPlayerTick

      public static void onPlayerTick(net.minecraft.world.entity.player.Player player)