Interface Lootable

    • Method Detail

      • setLootTable

        void setLootTable​(@Nullable
                          LootTable table)
        Set the loot table for a container or entity.
        To remove a loot table use null. Do not use LootTables.EMPTY to clear a LootTable.
        Parameters:
        table - the Loot Table this Container or Mob will have.
      • getLootTable

        @Nullable
        LootTable getLootTable()
        Gets the Loot Table attached to this block or entity.
        If an block/entity does not have a loot table, this will return null, NOT an empty loot table.
        Returns:
        the Loot Table attached to this block or entity.
      • setSeed

        void setSeed​(long seed)
        Set the seed used when this Loot Table generates loot.
        Parameters:
        seed - the seed to used to generate loot. Default is 0.
      • getSeed

        long getSeed()
        Get the Loot Table's seed.
        The seed is used when generating loot.
        Returns:
        the seed