Class LootTable


  • public class LootTable
    extends java.lang.Object
    • Method Detail

      • createStackSplitter

        public static java.util.function.Consumer<ItemStack> createStackSplitter​(java.util.function.Consumer<ItemStack> p_216124_0_)
      • getRandomItemsRaw

        public void getRandomItemsRaw​(LootContext p_216114_1_,
                                      java.util.function.Consumer<ItemStack> p_216114_2_)
      • getRandomItems

        @Deprecated
        public void getRandomItems​(LootContext p_216120_1_,
                                   java.util.function.Consumer<ItemStack> p_216120_2_)
        Deprecated.
      • shuffleAndSplitItems

        private void shuffleAndSplitItems​(java.util.List<ItemStack> p_186463_1_,
                                          int p_186463_2_,
                                          java.util.Random p_186463_3_)
      • getAvailableSlots

        private java.util.List<java.lang.Integer> getAvailableSlots​(IInventory p_186459_1_,
                                                                    java.util.Random p_186459_2_)
      • freeze

        public void freeze()
      • isFrozen

        public boolean isFrozen()
      • checkFrozen

        private void checkFrozen()
      • getPool

        public LootPool getPool​(java.lang.String name)
      • removePool

        public LootPool removePool​(java.lang.String name)
      • addPool

        public void addPool​(LootPool pool)