Class SpoilHandler
java.lang.Object
com.mrbysco.spoiled.handler.SpoilHandler
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisAreaLoaded(net.minecraft.world.level.LevelReader reader, net.minecraft.core.BlockPos center, int range) static voidonPlayerTick(net.minecraft.world.entity.player.Player player) static net.minecraft.world.InteractionResultonWorldTick(net.minecraft.server.level.ServerLevel level) static voidspoilItemInContainer(net.minecraft.world.Container container, int slot, net.minecraft.world.item.ItemStack stack, SpoilRecipe recipe, net.minecraft.core.RegistryAccess registryAccess)
-
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)
-