mirror of
https://gitlab.com/phoenix-dvpmt/mmoitems.git
synced 2024-12-23 04:47:34 +01:00
Fix MMOInventory comp
This commit is contained in:
parent
36c90b766e
commit
78e043c8b8
@ -402,6 +402,19 @@ public class MMOItems extends LuminePlugin {
|
||||
return inventory;
|
||||
}
|
||||
|
||||
/**
|
||||
* The PlayerInventory interface lets MMOItems knows what items to look for
|
||||
* in player inventories whe doing inventory updates. By default, it only
|
||||
* checks held items + armor slots. However other plugins like MMOInv do
|
||||
* implement custom slots and therefore must register a custom
|
||||
* PlayerInventory instance that tells of additional items to look for.
|
||||
*/
|
||||
public void registerPlayerInventory(PlayerInventory value) {
|
||||
|
||||
// Registers in the Inventory Handler
|
||||
getInventory().register(value);
|
||||
}
|
||||
|
||||
/**
|
||||
* The PlayerInventory interface lets MMOItems knows what items to look for
|
||||
* in player inventories whe doing inventory updates. By default, it only
|
||||
|
@ -19,6 +19,8 @@ import org.jetbrains.annotations.Nullable;
|
||||
|
||||
/**
|
||||
* That Gaussian spread distribution thing that no one understands.
|
||||
*
|
||||
* @author indyuce
|
||||
*/
|
||||
public class NumericStatFormula implements RandomStatData, UpdatableRandomStatData {
|
||||
private final double base, scale, spread, maxSpread;
|
||||
|
Loading…
Reference in New Issue
Block a user