Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Rosewood-Development/RoseLoot
/ functions
Functions
1,460 in github.com/Rosewood-Development/RoseLoot
⨍
Functions
1,460
◇
Types & classes
450
↓ 1,307 callers
Method
append
Merges another LootResult into this LootResult @param lootResults The other LootResult to merge into this one
Plugin/src/main/java/dev/rosewood/roseloot/loot/LootResult.java:75
↓ 475 callers
Method
get
Gets a string from this provider with placeholders applied @param context The LootContext @return The string
Plugin/src/main/java/dev/rosewood/roseloot/provider/StringProvider.java:18
↓ 249 callers
Method
isEmpty
()
Plugin/src/main/java/dev/rosewood/roseloot/loot/LootResult.java:22
↓ 194 callers
Method
put
Puts a LootContextParam value into the LootContext. Default LootContextParams are available at {@link LootContextParams}. @param param the LootContex
Plugin/src/main/java/dev/rosewood/roseloot/loot/context/LootContext.java:313
↓ 173 callers
Method
write
(IndentedFileWriter writer)
Plugin/src/main/java/dev/rosewood/roseloot/util/VanillaLootTableConverter.java:1328
↓ 145 callers
Method
fromSection
(ConfigurationSection section, String value, int defaultValue)
Plugin/src/main/java/dev/rosewood/roseloot/provider/NumberProvider.java:61
↓ 108 callers
Method
build
@return The built LootContext
Plugin/src/main/java/dev/rosewood/roseloot/loot/context/LootContext.java:321
↓ 104 callers
Method
key
()
Plugin/src/main/java/dev/rosewood/roseloot/loot/condition/EntityPropertyConditions.java:353
↓ 90 callers
Method
getKey
()
Plugin/src/main/java/dev/rosewood/roseloot/loot/item/ZMenuPlayerDataLootItem.java:88
↓ 88 callers
Method
add
Processes and adds a List of LootItems to the stored contents @param lootItems The LootItems to add
Plugin/src/main/java/dev/rosewood/roseloot/loot/LootContents.java:40
↓ 87 callers
Method
add
(int amount)
Plugin/src/main/java/dev/rosewood/roseloot/loot/item/ZMenuPlayerDataLootItem.java:108
↓ 86 callers
Method
getData
()
Plugin/src/main/java/dev/rosewood/roseloot/util/BlockInfo.java:13
↓ 86 callers
Method
getInstance
()
Plugin/src/main/java/dev/rosewood/roseloot/RoseLoot.java:33
↓ 86 callers
Method
getLocation
()
Plugin/src/main/java/dev/rosewood/roseloot/util/BlockInfo.java:17
↓ 81 callers
Method
of
(Block block)
Plugin/src/main/java/dev/rosewood/roseloot/util/BlockInfo.java:19
↓ 76 callers
Method
fromSection
(ConfigurationSection section, String key, String defaultValue)
Plugin/src/main/java/dev/rosewood/roseloot/provider/StringProvider.java:52
↓ 74 callers
Method
getInteger
Gets an integer number from this provider @param context The LootContext @return The number
Plugin/src/main/java/dev/rosewood/roseloot/provider/NumberProvider.java:15
↓ 72 callers
Method
registerLootCondition
Registers a LootCondtion by its Class, overwriting any existing LootConditions with the same name. The given class must have a constructor accepting a
Plugin/src/main/java/dev/rosewood/roseloot/event/LootConditionRegistrationEvent.java:40
↓ 69 callers
Method
create
Creates a new {@link LootContextParam} with the given name and type. @param name The name of the parameter @param type The type of the parameter @par
Plugin/src/main/java/dev/rosewood/roseloot/loot/context/LootContextParams.java:75
↓ 63 callers
Method
values
()
Plugin/src/main/java/dev/rosewood/roseloot/loot/table/LootTableTypes.java:45
↓ 57 callers
Method
builder
@return a new LootContext builder with a specific luck level
Plugin/src/main/java/dev/rosewood/roseloot/loot/context/LootContext.java:260
↓ 57 callers
Method
valueOf
(Class<T> enumClass, String name)
Plugin/src/main/java/dev/rosewood/roseloot/util/EnumHelper.java:9
↓ 53 callers
Method
getDouble
Gets a double number from this provider @param context The LootContext @return The number
Plugin/src/main/java/dev/rosewood/roseloot/provider/NumberProvider.java:25
↓ 52 callers
Method
equals
(Object o)
Plugin/src/main/java/dev/rosewood/roseloot/loot/item/MessageLootItem.java:98
↓ 51 callers
Method
decreaseIndentation
()
Plugin/src/main/java/dev/rosewood/roseloot/util/IndentedFileWriter.java:29
↓ 51 callers
Method
increaseIndentation
()
Plugin/src/main/java/dev/rosewood/roseloot/util/IndentedFileWriter.java:25
↓ 50 callers
Method
getName
@return the name of this LootTable
Plugin/src/main/java/dev/rosewood/roseloot/loot/LootTable.java:55
↓ 46 callers
Method
getFloat
Gets a float number from this provider @param context The LootContext @return The number
Plugin/src/main/java/dev/rosewood/roseloot/provider/NumberProvider.java:33
↓ 46 callers
Method
getType
@return the type of this LootTable
Plugin/src/main/java/dev/rosewood/roseloot/loot/LootTable.java:62
↓ 40 callers
Method
isEnabled
@return true if the provider is enabled, false otherwise
Plugin/src/main/java/dev/rosewood/roseloot/hook/items/ItemProvider.java:21
↓ 40 callers
Method
toString
()
Plugin/src/main/java/dev/rosewood/roseloot/manager/CooldownManager.java:94
↓ 37 callers
Method
getKeys
()
Plugin/src/main/java/dev/rosewood/roseloot/config/SettingKey.java:31
↓ 37 callers
Method
getLootContents
@return the LootContents generated
Plugin/src/main/java/dev/rosewood/roseloot/loot/LootResult.java:36
↓ 36 callers
Method
apply
(ItemStack itemStack, LootContext context)
Plugin/src/main/java/dev/rosewood/roseloot/loot/item/component/LootItemComponent.java:8
↓ 36 callers
Method
getType
@return the type of this parameter
Plugin/src/main/java/dev/rosewood/roseloot/loot/context/LootContextParam.java:36
↓ 34 callers
Method
registerBoolean
(Class<T> entityClass, String name, Predicate<T> supplier)
Plugin/src/main/java/dev/rosewood/roseloot/loot/condition/EntityPropertyConditions.java:229
↓ 34 callers
Method
registerEnum
(Class<T> entityClass, String name, Function<T, E> supplier, Class<E> enumClass, boolean allowEmptyValues)
Plugin/src/main/java/dev/rosewood/roseloot/loot/condition/EntityPropertyConditions.java:248
↓ 33 callers
Method
getLoot
Generates and returns a LootResult that contains the results of the loot generation. This method takes a LootTableType (default types available in {@l
Plugin/src/main/java/dev/rosewood/roseloot/api/RoseLootAPI.java:61
↓ 33 callers
Method
getValue
(LootContext context)
Plugin/src/main/java/dev/rosewood/roseloot/loot/item/ItemLootItem.java:246
↓ 33 callers
Method
required
Adds a parameter to the required parameters. If more than one parameter is provided, at least one of them must be provided. @param params The paramet
Plugin/src/main/java/dev/rosewood/roseloot/loot/table/LootTableType.java:97
↓ 30 callers
Method
getLootingPlayer
@return the Player that ultimately caused the loot generation
Plugin/src/main/java/dev/rosewood/roseloot/loot/context/LootContext.java:109
↓ 30 callers
Method
registerLootItem
Registers a LootItem type, overwriting any existing LootItems with the same name @param name The name of the LootItem type to register @param functio
Plugin/src/main/java/dev/rosewood/roseloot/event/LootItemTypeRegistrationEvent.java:41
↓ 29 callers
Method
add
(double weight, T element)
Plugin/src/main/java/dev/rosewood/roseloot/util/RandomCollection.java:18
↓ 29 callers
Method
fromString
(String string)
Plugin/src/main/java/dev/rosewood/roseloot/provider/StringProvider.java:48
↓ 29 callers
Method
optional
Adds a parameter to the optional parameters @param param The parameter to add @return This builder
Plugin/src/main/java/dev/rosewood/roseloot/loot/table/LootTableType.java:85
↓ 28 callers
Method
getPlayer
Gets an optional player from the given value @param value the value to get the player from @return an optional player
Plugin/src/main/java/dev/rosewood/roseloot/loot/context/LootContextParam.java:57
↓ 26 callers
Method
getItems
Triggers a generation of ItemStacks of all ItemGenerativeLootItems contained within this LootContents. Handled separately from {@link LootContents#tri
Plugin/src/main/java/dev/rosewood/roseloot/loot/LootContents.java:82
↓ 24 callers
Method
parse
Parses a condition String into a {@link LootCondition} supporting the following operators: <ul> <li><code>AND: &&</code></li> <li><code>OR: ||
Plugin/src/main/java/dev/rosewood/roseloot/loot/condition/LootConditionParser.java:39
↓ 24 callers
Method
trimNamespace
(String input)
Plugin/src/main/java/dev/rosewood/roseloot/util/VanillaLootTableConverter.java:1320
↓ 23 callers
Method
doesOverwriteExisting
Checks if something with existing values should be overwritten @param type the type of existing value @return true if the existing value should be ov
Plugin/src/main/java/dev/rosewood/roseloot/loot/LootResult.java:60
↓ 22 callers
Method
getExperience
Triggers a generation of the experience of all ExperienceGenerativeLootItem contained within this LootContents. Handled separately from {@link LootCon
Plugin/src/main/java/dev/rosewood/roseloot/loot/LootContents.java:96
↓ 21 callers
Method
getEntityLuck
Gets an Entity's luck level @param entity The Entity to get the luck level of @param includeFishingLuck Whether to include fishing luck @return The l
Plugin/src/main/java/dev/rosewood/roseloot/util/LootUtils.java:297
↓ 20 callers
Method
getInstance
()
Plugin/src/main/java/dev/rosewood/roseloot/api/RoseLootAPI.java:39
↓ 20 callers
Method
triggerExtras
Triggers the execution for anything that isn't an item or experience drop @param location The Location to execute the rest of the drops at
Plugin/src/main/java/dev/rosewood/roseloot/loot/LootContents.java:129
↓ 19 callers
Method
mapMaterials
(Function<ConfigurationSection, ? extends ItemLootMeta> constructor, BiConsumer<ItemStack, StringBuilder> prop
Plugin/src/main/java/dev/rosewood/roseloot/loot/item/meta/MaterialMappings.java:59
↓ 18 callers
Method
addPlaceholder
(String key, Object value)
Plugin/src/main/java/dev/rosewood/roseloot/loot/context/LootContext.java:29
↓ 18 callers
Method
registerBoolean
(LootConditionRegistrationEvent event, String name, Predicate<LootContext> predicate)
Plugin/src/main/java/dev/rosewood/roseloot/manager/LootTableManager.java:549
↓ 18 callers
Method
spawn
(Location location)
Plugin/src/main/java/dev/rosewood/roseloot/loot/item/SpawnEntityLootItem.java:99
↓ 17 callers
Method
getTag
(String value, Class<T> clazz, String registry)
Plugin/src/main/java/dev/rosewood/roseloot/util/LootUtils.java:283
↓ 17 callers
Method
remove
(int amount)
Plugin/src/main/java/dev/rosewood/roseloot/loot/item/ZMenuPlayerDataLootItem.java:114
↓ 17 callers
Method
writeNumberProvider
(String yamlName, String jsonName, IndentedFileWriter writer, JsonObject json, Double defaultValue)
Plugin/src/main/java/dev/rosewood/roseloot/util/VanillaLootTableConverter.java:545
↓ 16 callers
Method
check
Checks if the LootContext meets this tag's condition @param context The LootContext @return true if the condition is met, otherwise false
Plugin/src/main/java/dev/rosewood/roseloot/loot/condition/LootCondition.java:16
↓ 16 callers
Method
getEnchantment
(String id)
Plugin/src/main/java/dev/rosewood/roseloot/util/VersionUtils.java:122
↓ 16 callers
Method
getName
@return the name of this parameter
Plugin/src/main/java/dev/rosewood/roseloot/loot/context/LootContextParam.java:29
↓ 16 callers
Method
getState
()
Plugin/src/main/java/dev/rosewood/roseloot/util/BlockInfo.java:15
↓ 15 callers
Method
checkChance
Checks if a chance between 0-1 passes @param chance The chance @return true if the chance passed, otherwise false
Plugin/src/main/java/dev/rosewood/roseloot/util/LootUtils.java:96
↓ 15 callers
Method
next
()
Plugin/src/main/java/dev/rosewood/roseloot/util/RandomCollection.java:23
↓ 14 callers
Method
callEvent
Calls the PostLootGenerateEvent for the given LootResult. May modify the given LootResult or return a new one entirely. @param lootResult The LootRes
Plugin/src/main/java/dev/rosewood/roseloot/manager/LootTableManager.java:654
↓ 14 callers
Method
getList
Gets a list of strings from this provider with placeholders applied @param context The LootContext @return The list of strings
Plugin/src/main/java/dev/rosewood/roseloot/provider/StringProvider.java:36
↓ 14 callers
Method
toString
()
Plugin/src/main/java/dev/rosewood/roseloot/loot/condition/BaseLootCondition.java:70
↓ 13 callers
Method
applyPlaceholders
Applies placeholders to the text using PlaceholderAPI, and this LootContext's placeholders. @param text the text to apply placeholders to @return the
Plugin/src/main/java/dev/rosewood/roseloot/loot/context/LootContext.java:212
↓ 13 callers
Method
getAs
Gets an Optional LootContext value cast to a desire class based on its LootContextParam @param param the LootContextParam to get the value for @param
Plugin/src/main/java/dev/rosewood/roseloot/loot/context/LootContext.java:91
↓ 13 callers
Method
getTagValues
(String value, Class<T> clazz, String registry)
Plugin/src/main/java/dev/rosewood/roseloot/util/LootUtils.java:278
↓ 12 callers
Method
clamp
(int value, int min, int max)
Plugin/src/main/java/dev/rosewood/roseloot/util/LootUtils.java:227
↓ 12 callers
Method
create
(RoseSetting<T> setting)
Plugin/src/main/java/dev/rosewood/roseloot/config/SettingKey.java:26
↓ 11 callers
Method
getLootTable
Gets a LootTable by its LootTableType and name. @param lootTableType The LootTableType of the loot table @param name The fully qualified name of the
Plugin/src/main/java/dev/rosewood/roseloot/api/RoseLootAPI.java:85
↓ 11 callers
Method
getLootedBlockInfo
@return the BlockInfo associated with the looted block (or loot origin location)
Plugin/src/main/java/dev/rosewood/roseloot/loot/context/LootContext.java:135
↓ 11 callers
Method
register
(String name, LootTableType lootTableType)
Plugin/src/main/java/dev/rosewood/roseloot/loot/table/LootTableTypes.java:49
↓ 10 callers
Method
adjustBlockLocation
(Location location)
Plugin/src/main/java/dev/rosewood/roseloot/util/LootUtils.java:148
↓ 9 callers
Method
getItemUsed
@return the ItemStack used by the looter
Plugin/src/main/java/dev/rosewood/roseloot/loot/context/LootContext.java:122
↓ 9 callers
Method
getToMaximumDecimals
(double value, int decimals)
Plugin/src/main/java/dev/rosewood/roseloot/util/LootUtils.java:272
↓ 9 callers
Method
isCancelled
()
Plugin/src/main/java/dev/rosewood/roseloot/event/PostLootGenerateEvent.java:135
↓ 8 callers
Method
equals
(Object o)
Plugin/src/main/java/dev/rosewood/roseloot/loot/context/LootContextParam.java:102
↓ 8 callers
Method
getMaterial
()
Plugin/src/main/java/dev/rosewood/roseloot/util/BlockInfo.java:11
↓ 8 callers
Method
isEmpty
()
Plugin/src/main/java/dev/rosewood/roseloot/util/RandomCollection.java:45
↓ 8 callers
Method
withPlaceholders
(BiConsumer<T, LootPlaceholders> placeholderApplicator)
Plugin/src/main/java/dev/rosewood/roseloot/loot/context/LootContextParams.java:102
↓ 7 callers
Method
decolorize
Converts Minecraft color code characters into ampersands @param string The string to convert @return a copy of the String with Minecraft color code c
Plugin/src/main/java/dev/rosewood/roseloot/util/LootUtils.java:266
↓ 7 callers
Method
dropAtLocation
(Location location)
Plugin/src/main/java/dev/rosewood/roseloot/loot/LootContents.java:202
↓ 7 callers
Method
getItem
Gets the ItemStack for the given item ID. @param context The LootContext @param id The item ID to look up @return The ItemStack for the given item ID
Plugin/src/main/java/dev/rosewood/roseloot/hook/items/ItemProvider.java:39
↓ 7 callers
Method
issueLoading
(String fileName, String reason)
Plugin/src/main/java/dev/rosewood/roseloot/manager/LootTableManager.java:717
↓ 7 callers
Method
populate
Populates the LootContext with the contents of this LootContentsPopulator @param context The LootContext @param contents The LootContents to populate
Plugin/src/main/java/dev/rosewood/roseloot/loot/LootContentsPopulator.java:15
↓ 7 callers
Method
removeIf
(Predicate<T> predicate)
Plugin/src/main/java/dev/rosewood/roseloot/util/RandomCollection.java:41
↓ 7 callers
Method
setCancelled
(boolean cancel)
Plugin/src/main/java/dev/rosewood/roseloot/event/PostLootGenerateEvent.java:140
↓ 6 callers
Method
findEnchantmentLegacy
(String... names)
Plugin/src/main/java/dev/rosewood/roseloot/util/VersionUtils.java:155
↓ 6 callers
Method
generate
Generates contents with the given LootContext @param context The LootContext @return generated contents
Plugin/src/main/java/dev/rosewood/roseloot/loot/LootItemGenerator.java:15
↓ 6 callers
Method
getAllItems
Gets all items that can be generated from this LootItemGenerator @param context The LootContext @return all items that can possibly be generated
Plugin/src/main/java/dev/rosewood/roseloot/loot/LootItemGenerator.java:23
↓ 6 callers
Method
getEnchantmentLevel
Gets the enchantment level for the given Enchantment for the ItemStack used by the looter @param enchantment The Enchantment level to get @return the
Plugin/src/main/java/dev/rosewood/roseloot/loot/context/LootContext.java:153
↓ 6 callers
Method
getValue
(LootContext context)
Plugin/src/main/java/dev/rosewood/roseloot/loot/item/ServerVariableLootItem.java:78
↓ 6 callers
Method
logFailToResolveMessage
(String itemId)
Plugin/src/main/java/dev/rosewood/roseloot/loot/item/ItemLootItem.java:72
↓ 6 callers
Method
parseLootItem
(String fileName, String parents, String entryKey, String itemKey, ConfigurationSection section)
Plugin/src/main/java/dev/rosewood/roseloot/manager/LootTableManager.java:378
next →
1–100 of 1,460, ranked by callers