Index
All Classes and Interfaces|All Packages
A
- ADD_CONSTANT - Enum constant in enum class com.github.crashdemons.miningtrophies.modifiers.DropRateModifierType
-
adds a constant value to the droprate
- ADD_MULTIPLE - Enum constant in enum class com.github.crashdemons.miningtrophies.modifiers.DropRateModifierType
-
adds a VALUE*droprate to the droprate.
- ADD_MULTIPLE_PER_LEVEL - Enum constant in enum class com.github.crashdemons.miningtrophies.modifiers.DropRateModifierType
-
adds a value to the droprate where the value is a multiple of a provided effectiveness level.
- addItem(Player, ItemStack) - Static method in class com.github.crashdemons.miningtrophies.InventoryManager
- AMETHYST_CLUSTER - Enum constant in enum class com.github.crashdemons.miningtrophies.TrophyType
- apply(double) - Method in class com.github.crashdemons.miningtrophies.modifiers.DropRateModifier
-
Apply the droprate modifier to the droprate value
- applyDropRate() - Method in class com.github.crashdemons.miningtrophies.events.TrophyRollEvent
-
Re-apply the current effective droproll and effective droprate values to make a new determination of the trophy drop's success.
- applyModifiers() - Method in class com.github.crashdemons.miningtrophies.events.TrophyRollEvent
-
Re-apply all droprate modifiers to the original droprate and recalculate the effective droprate.
B
- BlockDropTrophyEvent - Class in com.github.crashdemons.miningtrophies.events
-
Defines a mining-trophy drop event that occurs when a player mines a block and receives a trophy.
- BlockDropTrophyEvent(Block, Player, ItemStack) - Constructor for class com.github.crashdemons.miningtrophies.events.BlockDropTrophyEvent
-
Constructs a mining-trophy drop event
C
- COAL_ORE - Enum constant in enum class com.github.crashdemons.miningtrophies.TrophyType
- com.github.crashdemons.miningtrophies - package com.github.crashdemons.miningtrophies
-
Core classes and information belonging to MiningTrophies - including the plugin class.
- com.github.crashdemons.miningtrophies.events - package com.github.crashdemons.miningtrophies.events
-
Events created by MiningTrophies
- com.github.crashdemons.miningtrophies.modifiers - package com.github.crashdemons.miningtrophies.modifiers
- COPPER_ORE - Enum constant in enum class com.github.crashdemons.miningtrophies.TrophyType
- createDrop() - Method in enum class com.github.crashdemons.miningtrophies.TrophyType
-
Creates a new itemstack of this trophy type
- createDrop(boolean, boolean, boolean) - Method in enum class com.github.crashdemons.miningtrophies.TrophyType
-
Creates a new itemstack of this trophy type
- createTrophyDrop(TrophyType) - Method in class com.github.crashdemons.miningtrophies.MiningTrophies
D
- DIAMOND_ORE - Enum constant in enum class com.github.crashdemons.miningtrophies.TrophyType
- DropRateModifier - Class in com.github.crashdemons.miningtrophies.modifiers
-
A modifier for the droprate including type and value information
- DropRateModifier(DropRateModifierType, double) - Constructor for class com.github.crashdemons.miningtrophies.modifiers.DropRateModifier
-
Constructs a modifier of a given type and value
- DropRateModifier(DropRateModifierType, double, int) - Constructor for class com.github.crashdemons.miningtrophies.modifiers.DropRateModifier
-
Constructs a modifier with a value that is multiplied by a level of effectiveness
- DropRateModifierType - Enum Class in com.github.crashdemons.miningtrophies.modifiers
-
Indicates the type of modifier to the effective droprate.
E
- EMERALD_ORE - Enum constant in enum class com.github.crashdemons.miningtrophies.TrophyType
G
- get(Material) - Static method in enum class com.github.crashdemons.miningtrophies.TrophyType
-
Get the trophytype corresponding to a provided block material
- getAdditiveMultiplierValue() - Method in class com.github.crashdemons.miningtrophies.modifiers.DropRateModifier
-
Converts the modifier into an equivalent add-multiple value where droprate*(1+newvalue) is equivalent to the current modifier effect.
- getBlockMaterial() - Method in enum class com.github.crashdemons.miningtrophies.TrophyType
-
Get the material of the block that would drop this trophy
- getBlockName() - Method in enum class com.github.crashdemons.miningtrophies.TrophyType
-
Get the human-readable name of the block that drops this trophy
- getCustomModifier(String, String) - Method in class com.github.crashdemons.miningtrophies.events.TrophyRollEvent
-
Gets a custom (plugin-added) modifier to the trophy-roll event.
- getCustomModifier(Plugin, String) - Method in class com.github.crashdemons.miningtrophies.events.TrophyRollEvent
-
Gets a custom (plugin-added) modifier to the trophy-roll event.
- getCustomModifierName(String, String) - Static method in class com.github.crashdemons.miningtrophies.events.TrophyRollEvent
-
Constructs the internal name of a custom droprate modifier, provided the name of the plugin and modifier.
- getDrop() - Method in class com.github.crashdemons.miningtrophies.events.BlockDropTrophyEvent
-
The trophy itemstack being dropped
- getDropConfigName() - Method in enum class com.github.crashdemons.miningtrophies.TrophyType
-
get the config entry key that corresponds to the droprate for this trophy
- getDropName() - Method in enum class com.github.crashdemons.miningtrophies.TrophyType
- getDropSuccess() - Method in class com.github.crashdemons.miningtrophies.events.TrophyRollEvent
-
Whether the effective drop roll was determined to be a success.
- getEffectiveDropRate() - Method in class com.github.crashdemons.miningtrophies.events.TrophyRollEvent
-
Gets the configured droprate for the target as a fractional probability, after modification by fortune.
- getEffectiveDropRoll() - Method in class com.github.crashdemons.miningtrophies.events.TrophyRollEvent
-
Gets the effective drop roll value after modification by MiningTrophies.
- getFortuneModifier() - Method in class com.github.crashdemons.miningtrophies.events.TrophyRollEvent
-
Deprecated.
- getHandlerList() - Static method in class com.github.crashdemons.miningtrophies.events.BlockDropTrophyEvent
-
Get a list of handlers for the event type
- getHandlerList() - Static method in class com.github.crashdemons.miningtrophies.events.TrophyRollEvent
-
Get a list of handlers for the event.
- getHandlers() - Method in class com.github.crashdemons.miningtrophies.events.BlockDropTrophyEvent
-
Get a list of handlers for the event type
- getHandlers() - Method in class com.github.crashdemons.miningtrophies.events.TrophyRollEvent
-
Get a list of handlers for the event.
- getIdentifyingLore() - Method in enum class com.github.crashdemons.miningtrophies.TrophyType
- getLevel() - Method in class com.github.crashdemons.miningtrophies.modifiers.DropRateModifier
-
Gets the effectiveness level of the modifier.
- getLore() - Method in enum class com.github.crashdemons.miningtrophies.TrophyType
- getMiner() - Method in class com.github.crashdemons.miningtrophies.events.TrophyRollEvent
-
Get the Miner's entity that may have done the mining.
- getMinerAlwaysRewarded() - Method in class com.github.crashdemons.miningtrophies.events.TrophyRollEvent
-
Gets whether the miner was configured to always be rewarded this type of target.
- getModifier(String) - Method in class com.github.crashdemons.miningtrophies.events.TrophyRollEvent
-
Retrieve the value of a modifier of the effective droprate.
- getModifiers() - Method in class com.github.crashdemons.miningtrophies.events.TrophyRollEvent
-
Gets the list of modifiers to the effective droprate.
- getMultiplierValue() - Method in class com.github.crashdemons.miningtrophies.modifiers.DropRateModifier
-
Converts the modifier value to a multiplier (1.0=no effect) if possible.
- getOriginalDropRate() - Method in class com.github.crashdemons.miningtrophies.events.TrophyRollEvent
-
Gets the configured droprate for the target as a fractional probability, unmodified.
- getOriginalDropRoll() - Method in class com.github.crashdemons.miningtrophies.events.TrophyRollEvent
-
Gets the original PRNG-generated random value of the drop roll, uniform between 0 and 1 inclusively.
- getPlayer() - Method in class com.github.crashdemons.miningtrophies.events.BlockDropTrophyEvent
-
The player that mine the block, causing the trophy event
- getShortName() - Method in enum class com.github.crashdemons.miningtrophies.TrophyType
-
get a shortened name name (lowercase, without underscores) of this enum value.
- getTarget() - Method in class com.github.crashdemons.miningtrophies.events.TrophyRollEvent
-
Get the Target's block that may have been mined
- getTargetMaterial() - Method in class com.github.crashdemons.miningtrophies.events.TrophyRollEvent
- getType() - Method in class com.github.crashdemons.miningtrophies.modifiers.DropRateModifier
-
Gets the type of modifier
- getValue() - Method in class com.github.crashdemons.miningtrophies.modifiers.DropRateModifier
-
Returns the value or rate applied by the modifier
- GOLD_ORE - Enum constant in enum class com.github.crashdemons.miningtrophies.TrophyType
I
- identifyTrophyItem(ItemStack) - Static method in enum class com.github.crashdemons.miningtrophies.TrophyType
- identifyTrophyLore(String) - Static method in enum class com.github.crashdemons.miningtrophies.TrophyType
- InventoryManager - Class in com.github.crashdemons.miningtrophies
- IRON_ORE - Enum constant in enum class com.github.crashdemons.miningtrophies.TrophyType
- isCancelled() - Method in class com.github.crashdemons.miningtrophies.events.BlockDropTrophyEvent
-
Check whether the event is cancelled.
- isNCPEnabled() - Method in class com.github.crashdemons.miningtrophies.MiningTrophies
-
Checks whether the plugin has detected NoCheatPlus and will attempt to support it.
L
- LAPIS_ORE - Enum constant in enum class com.github.crashdemons.miningtrophies.TrophyType
M
- MiningTrophies - Class in com.github.crashdemons.miningtrophies
-
The main plugin class for MiningTrophies
- MiningTrophies() - Constructor for class com.github.crashdemons.miningtrophies.MiningTrophies
- MULTIPLY - Enum constant in enum class com.github.crashdemons.miningtrophies.modifiers.DropRateModifierType
-
Multiplies the droprate against a value.
N
- NETHER_QUARTZ_ORE - Enum constant in enum class com.github.crashdemons.miningtrophies.TrophyType
- NO_EFFECT - Enum constant in enum class com.github.crashdemons.miningtrophies.modifiers.DropRateModifierType
-
Performs no change to the droprate.
O
- onBlockBreakEvent(BlockBreakEvent) - Method in class com.github.crashdemons.miningtrophies.MiningTrophies
- onBlockPlace(BlockPlaceEvent) - Method in class com.github.crashdemons.miningtrophies.MiningTrophies
- onCommand(CommandSender, Command, String, String[]) - Method in class com.github.crashdemons.miningtrophies.MiningTrophies
- onDisable() - Method in class com.github.crashdemons.miningtrophies.MiningTrophies
- onEnable() - Method in class com.github.crashdemons.miningtrophies.MiningTrophies
- onGrindstone(InventoryClickEvent) - Method in class com.github.crashdemons.miningtrophies.MiningTrophies
- onItemSpawn(ItemSpawnEvent) - Method in class com.github.crashdemons.miningtrophies.MiningTrophies
R
- recalculateSuccess() - Method in class com.github.crashdemons.miningtrophies.events.TrophyRollEvent
-
Re-apply all factors (droprate modifiers then effective values) to determine suuccess.
- recalculateSuccess(boolean) - Method in class com.github.crashdemons.miningtrophies.events.TrophyRollEvent
-
Re-apply all relevant factors (droprate modifiers then effective values) to determine suuccess.
- REDSTONE_ORE - Enum constant in enum class com.github.crashdemons.miningtrophies.TrophyType
- removeItems(Inventory, Material, int) - Static method in class com.github.crashdemons.miningtrophies.InventoryManager
- resolveOreVariant(Material) - Static method in enum class com.github.crashdemons.miningtrophies.TrophyType
S
- SET_CONSTANT - Enum constant in enum class com.github.crashdemons.miningtrophies.modifiers.DropRateModifierType
-
Sets the droprate to a constant value, erasing changes by modifiers before it.
- setCancelled(boolean) - Method in class com.github.crashdemons.miningtrophies.events.BlockDropTrophyEvent
-
Set whether the event should be cancelled.
- setCustomModifier(Plugin, String, DropRateModifier) - Method in class com.github.crashdemons.miningtrophies.events.TrophyRollEvent
-
Add or change a note about your custom modifier to the trophy-roll event.
- setCustomModifier(Plugin, String, DropRateModifier, boolean) - Method in class com.github.crashdemons.miningtrophies.events.TrophyRollEvent
-
Add or change a note about your custom modifier to the trophy-roll event.
- setDropSuccess(boolean) - Method in class com.github.crashdemons.miningtrophies.events.TrophyRollEvent
-
Sets whether the drop roll should be considered a success.
- setEffectiveDropRate(double) - Method in class com.github.crashdemons.miningtrophies.events.TrophyRollEvent
-
Deprecated.this value is very likely to be overwritten by other plugins (or applyModifiers/recalculateSuccess) - use setCustomModifier instead.
- setEffectiveDropRoll(double) - Method in class com.github.crashdemons.miningtrophies.events.TrophyRollEvent
-
Sets the effective droproll value for the event.
- setModifier(String, DropRateModifier) - Method in class com.github.crashdemons.miningtrophies.events.TrophyRollEvent
-
Deprecated.using this method to modify existing modifiers should be avoided - use setCustomModifier to note new ones.
- setModifiers(Map<String, DropRateModifier>) - Method in class com.github.crashdemons.miningtrophies.events.TrophyRollEvent
-
Deprecated.using this method to modify existing modifiers should be avoided - use setCustomModifier to note new ones.
- SimulatedBlockBreakEvent - Class in com.github.crashdemons.miningtrophies.events
-
An event used by the plugin to detect if a hypothetical BlockBreak would be cancelled, potentially from protection plugins.
- SimulatedBlockBreakEvent(Block, Player) - Constructor for class com.github.crashdemons.miningtrophies.events.SimulatedBlockBreakEvent
-
Constructs a simulated blockbreak event
- SPAWNER - Enum constant in enum class com.github.crashdemons.miningtrophies.TrophyType
- succeeded() - Method in class com.github.crashdemons.miningtrophies.events.TrophyRollEvent
-
Whether the effective drop roll was determined to be a success.
T
- TrophyRollEvent - Class in com.github.crashdemons.miningtrophies.events
-
Event created by MiningTrophies (0.7.2+) to indicate that a trophy dropchance roll has occurred and the success/failure has been determined.
- TrophyRollEvent(Entity, Block, boolean, double, double) - Constructor for class com.github.crashdemons.miningtrophies.events.TrophyRollEvent
-
Creates the Trophy dropchance event for MiningTrophies.
- TrophyRollEvent(Entity, Block, boolean, double, double, double, double, boolean) - Constructor for class com.github.crashdemons.miningtrophies.events.TrophyRollEvent
-
Creates the Trophy dropchance event for MiningTrophies.
- TrophyRollEvent(Entity, Block, boolean, double, double, double, double, double, boolean) - Constructor for class com.github.crashdemons.miningtrophies.events.TrophyRollEvent
-
Deprecated.
- TrophyType - Enum Class in com.github.crashdemons.miningtrophies
-
An enum defining each supported trophy type, with all necessary information to create it.
V
- valueOf(String) - Static method in enum class com.github.crashdemons.miningtrophies.modifiers.DropRateModifierType
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class com.github.crashdemons.miningtrophies.TrophyType
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class com.github.crashdemons.miningtrophies.modifiers.DropRateModifierType
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class com.github.crashdemons.miningtrophies.TrophyType
-
Returns an array containing the constants of this enum class, in the order they are declared.
All Classes and Interfaces|All Packages