Class SoulboundHooks

java.lang.Object
dev.upcraft.soulbound.core.SoulboundHooks

public class SoulboundHooks extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    addItemToPlayer(net.minecraft.world.entity.player.Player player, net.minecraft.world.item.ItemStack stack)
     
    static UnaryOperator<net.minecraft.world.item.ItemStack>
     
    static net.minecraft.nbt.ListTag
    getFilteredItemList(net.minecraft.core.NonNullList<net.minecraft.world.item.ItemStack> items, net.minecraft.util.RandomSource random)
     
    static boolean
    isRealPlayer(net.minecraft.server.level.ServerPlayer player)
     
    static void
    processPlayerDrops(net.minecraft.world.entity.player.Player player, net.minecraft.core.NonNullList<net.minecraft.world.item.ItemStack> targetInv, it.unimi.dsi.fastutil.ints.Int2ObjectMap<net.minecraft.world.item.ItemStack> items, UnaryOperator<net.minecraft.world.item.ItemStack> itemProcessor)
     
    static it.unimi.dsi.fastutil.ints.Int2ObjectMap<net.minecraft.world.item.ItemStack>
    readItemList(net.minecraft.nbt.ListTag list)
     
    static boolean
    shouldKeepStack(net.minecraft.world.item.ItemStack stack, net.minecraft.util.RandomSource random)
     

    Methods inherited from class java.lang.Object

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

    • SoulboundHooks

      public SoulboundHooks()
  • Method Details

    • isRealPlayer

      public static boolean isRealPlayer(net.minecraft.server.level.ServerPlayer player)
    • createItemProcessor

      public static UnaryOperator<net.minecraft.world.item.ItemStack> createItemProcessor(SoulboundContainer container)
    • getFilteredItemList

      public static net.minecraft.nbt.ListTag getFilteredItemList(net.minecraft.core.NonNullList<net.minecraft.world.item.ItemStack> items, net.minecraft.util.RandomSource random)
    • shouldKeepStack

      public static boolean shouldKeepStack(net.minecraft.world.item.ItemStack stack, net.minecraft.util.RandomSource random)
    • readItemList

      public static it.unimi.dsi.fastutil.ints.Int2ObjectMap<net.minecraft.world.item.ItemStack> readItemList(net.minecraft.nbt.ListTag list)
    • processPlayerDrops

      public static void processPlayerDrops(net.minecraft.world.entity.player.Player player, net.minecraft.core.NonNullList<net.minecraft.world.item.ItemStack> targetInv, it.unimi.dsi.fastutil.ints.Int2ObjectMap<net.minecraft.world.item.ItemStack> items, UnaryOperator<net.minecraft.world.item.ItemStack> itemProcessor)
    • addItemToPlayer

      public static void addItemToPlayer(net.minecraft.world.entity.player.Player player, net.minecraft.world.item.ItemStack stack)