Index

A B C D E F G H I J L M N O P Q R S T U V W 
All Classes|All Packages|Deprecated API|Serialized Form

A

addNBT(ItemStack, String, String) - Static method in class de.jeff_media.jefflib.NBTAPI
Deprecated.
 
addNBT(PersistentDataHolder, String, String) - Static method in class de.jeff_media.jefflib.NBTAPI
Deprecated.
 
addTrackedBlockType(Material) - Static method in class de.jeff_media.jefflib.BlockTracker
Adds a new material to the block tracker
addTrackedBlockTypes(Collection<Material>) - Static method in class de.jeff_media.jefflib.BlockTracker
Adds new materials to the block tracker
affectsTopInventory(InventoryDragEvent) - Static method in class de.jeff_media.jefflib.InventoryUtils
Checks whether the given InventoryDragEvent also affects the top Inventory.
AIR - Static variable in class de.jeff_media.jefflib.BlockUtils.Predicates
Represents AIR and CAVE_AIR
appendLines(File, String) - Static method in class de.jeff_media.jefflib.FileUtils
Appends the given line to the file
appendLines(File, String[]) - Static method in class de.jeff_media.jefflib.FileUtils
Appends the given lines to the file
appendLines(File, Collection<String>) - Static method in class de.jeff_media.jefflib.FileUtils
Appends the given lines to the file
applyGradient(String, HexColor, HexColor) - Static method in class de.jeff_media.jefflib.data.HexColor
Applies a gradient to the given text.

B

banner(String) - Static method in class de.jeff_media.jefflib.TextUtils
Prints a banner / headline to console
BlockFaceUtils - Class in de.jeff_media.jefflib
BlockFace related methods
BlockFaceUtils() - Constructor for class de.jeff_media.jefflib.BlockFaceUtils
 
BlockTracker - Class in de.jeff_media.jefflib
Tracks player placed blocks.
BlockTracker() - Constructor for class de.jeff_media.jefflib.BlockTracker
 
BlockTrackListener - Class in de.jeff_media.jefflib.internal.listeners
Keeps track of player placed blocks
BlockTrackListener() - Constructor for class de.jeff_media.jefflib.internal.listeners.BlockTrackListener
 
BlockUtils - Class in de.jeff_media.jefflib
Block related methods
BlockUtils() - Constructor for class de.jeff_media.jefflib.BlockUtils
 
BlockUtils.Predicates - Class in de.jeff_media.jefflib
Some predefined Block Predicates
BlockUtils.RadiusType - Enum Class in de.jeff_media.jefflib
Represents the type of radius
build() - Method in class de.jeff_media.jefflib.ItemBuilder
Returns the built ItemStack
BURNABLE - Static variable in class de.jeff_media.jefflib.BlockUtils.Predicates
Represents all burnable blocks
BYTE - Static variable in class de.jeff_media.jefflib.PDCUtils
Deprecated.
 
BYTES - Static variable in class de.jeff_media.jefflib.PDCUtils
Deprecated.
 

C

CardinalDirection - Enum Class in de.jeff_media.jefflib.data
Represents the 16 cardinal directions (north, north north east, north east, east north east, ...)
castEntityList(List<? extends Entity>, Class<? extends E>) - Static method in class de.jeff_media.jefflib.EntityUtils
Converts a list of Entities to a list of the desired Entity class.
chance(double) - Static method in class de.jeff_media.jefflib.RandomUtils
Returns true with a specific chance, otherwise false, with a range between 0 (always false) and 1 (always true)
chance100(double) - Static method in class de.jeff_media.jefflib.RandomUtils
Returns true with a specific chance, otherwise false, with a range between 0 (always false) and 100 (always true)
ChunkCoordinates(int, int) - Constructor for class de.jeff_media.jefflib.LocationUtils.ChunkCoordinates
 
ClassUtils - Class in de.jeff_media.jefflib
Class related methods that do not have something to do with Reflection (see ReflUtils for that)
ClassUtils() - Constructor for class de.jeff_media.jefflib.ClassUtils
 
clearTrackedBlockTypes() - Static method in class de.jeff_media.jefflib.BlockTracker
Clears the list of tracked materials
CollectionUtils - Class in de.jeff_media.jefflib
Collection related methods.
CollectionUtils() - Constructor for class de.jeff_media.jefflib.CollectionUtils
 
color(String) - Static method in class de.jeff_media.jefflib.TextUtils
Replaces color codes using &.
CommandUtils - Class in de.jeff_media.jefflib
Command registration related methods
CommandUtils() - Constructor for class de.jeff_media.jefflib.CommandUtils
 
compareTo(ReflUtils.NMSVersion) - Method in class de.jeff_media.jefflib.ReflUtils.NMSVersion
 
CONTAINER - Static variable in class de.jeff_media.jefflib.PDCUtils
Deprecated.
 
CONTAINERS - Static variable in class de.jeff_media.jefflib.PDCUtils
Deprecated.
 
createList(T...) - Static method in class de.jeff_media.jefflib.CollectionUtils
Creates a List of all given elements
CUBOID - Enum constant in enum class de.jeff_media.jefflib.BlockUtils.RadiusType
A cuboid radius, like a normal WorldEdit selection of X*X*X blocks

D

de.jeff_media.jefflib - package de.jeff_media.jefflib
Main Library methods. Some methods require initialization first, see JeffLib.init(org.bukkit.plugin.Plugin) and JeffLib.init(org.bukkit.plugin.Plugin, boolean)
de.jeff_media.jefflib.data - package de.jeff_media.jefflib.data
Some data classes.
de.jeff_media.jefflib.data.tuples - package de.jeff_media.jefflib.data.tuples
Contains Tuples (Pair, Triplet and Quartet) implementing hashCode() and equals(Object)
de.jeff_media.jefflib.events - package de.jeff_media.jefflib.events
Events provided by JeffLib
de.jeff_media.jefflib.exceptions - package de.jeff_media.jefflib.exceptions
Exceptions used by JeffLib
de.jeff_media.jefflib.internal - package de.jeff_media.jefflib.internal
Internal functionality.
de.jeff_media.jefflib.internal.blackhole - package de.jeff_media.jefflib.internal.blackhole
Contains wrappers for third party APIs that would normally result in NoClassDefFoundErrors because of Java's strange behaviour to even import classes that were called in the source using fully qualified names within try/catch blocks instead of normal imports...
de.jeff_media.jefflib.internal.listeners - package de.jeff_media.jefflib.internal.listeners
Internal listeners.
DOUBLE - Static variable in class de.jeff_media.jefflib.PDCUtils
Deprecated.
 
DOWN - Enum constant in enum class de.jeff_media.jefflib.events.PlayerScrollEvent.ScrollDirection
Represents scrolling down / to the left
drawHollowCube(Block, Block, Player, Particle, int) - Static method in class de.jeff_media.jefflib.ParticleUtils
Returns a runnable that creates cube-formed particles
drawHollowCube(Location, Location, Player, Particle, int) - Static method in class de.jeff_media.jefflib.ParticleUtils
Returns a runnable that creates cube-formed particles
drawHollowCube(World, BoundingBox, Player, Particle, int) - Static method in class de.jeff_media.jefflib.ParticleUtils
Returns a runnable that creates cube-formed particles
dropExp(Location, int) - Static method in class de.jeff_media.jefflib.ExpUtils
Drops an experience orb at the given location with the given amount of experience

E

EAST - Enum constant in enum class de.jeff_media.jefflib.data.CardinalDirection
 
EAST_NORTH_EAST - Enum constant in enum class de.jeff_media.jefflib.data.CardinalDirection
 
EAST_SOUTH_EASE - Enum constant in enum class de.jeff_media.jefflib.data.CardinalDirection
 
EnchantmentUtils - Class in de.jeff_media.jefflib
Enchantment related methods
EnchantmentUtils() - Constructor for class de.jeff_media.jefflib.EnchantmentUtils
 
endTimings(String) - Static method in class de.jeff_media.jefflib.TimeUtils
Ends the time measurement and prints out the duration in human readable milliseconds
endTimings(String, boolean) - Static method in class de.jeff_media.jefflib.TimeUtils
Ends the time measurement, and optionally prints out the duration in human readable milliseconds
endTimings(String, Plugin, boolean) - Static method in class de.jeff_media.jefflib.TimeUtils
Ends the time measurement and optionally prints out the duration in human readable milliseconds
EntityUtils - Class in de.jeff_media.jefflib
Entity related methods
EntityUtils() - Constructor for class de.jeff_media.jefflib.EntityUtils
 
equals(Object) - Method in class de.jeff_media.jefflib.data.HexColor
 
equals(Object) - Method in class de.jeff_media.jefflib.data.tuples.Pair
 
equals(Object) - Method in class de.jeff_media.jefflib.data.tuples.Quartet
 
equals(Object) - Method in class de.jeff_media.jefflib.data.tuples.Quintet
 
equals(Object) - Method in class de.jeff_media.jefflib.data.tuples.Triplet
 
equals(Object) - Method in class de.jeff_media.jefflib.data.WorldBoundingBox
 
equals(Object) - Method in class de.jeff_media.jefflib.ReflUtils.NMSVersion
 
exists(String) - Static method in class de.jeff_media.jefflib.ClassUtils
 
ExpUtils - Class in de.jeff_media.jefflib
Experience related methods
ExpUtils() - Constructor for class de.jeff_media.jefflib.ExpUtils
 

F

FileUtils - Class in de.jeff_media.jefflib
File related methods
FileUtils() - Constructor for class de.jeff_media.jefflib.FileUtils
 
format(String) - Static method in class de.jeff_media.jefflib.TextUtils
Replaces Emojis, PlacederholderAPI placeholders and colors (see TextUtils.color(String))
format(String, OfflinePlayer) - Static method in class de.jeff_media.jefflib.TextUtils
Replaces Emojis, PlacederholderAPI placeholders and colors (see TextUtils.color(String))
formatNanoseconds(long) - Static method in class de.jeff_media.jefflib.TimeUtils
Formats nanoseconds to a human readable format in milliseconds with 4 decimal places
fromBase64(String) - Static method in class de.jeff_media.jefflib.ItemSerializer
Turns a Base64 String into an ItemStack
fromBytes(byte[]) - Static method in class de.jeff_media.jefflib.ItemSerializer
Turns a byte array into an ItemStack
fromHours(double) - Static method in class de.jeff_media.jefflib.Ticks
Converts hours to ticks
fromIndex(int) - Static method in enum class de.jeff_media.jefflib.data.CardinalDirection
Converts an integer between 0 (inclusive) and 16 (inclusive) to its cardinal direction. 0 and 16 both return NORTH.
fromMinutes(double) - Static method in class de.jeff_media.jefflib.Ticks
Converts minutes to ticks
fromSeconds(double) - Static method in class de.jeff_media.jefflib.Ticks
Converts seconds to ticks
fromString(String) - Static method in class de.jeff_media.jefflib.ReflUtils.NMSVersion
 
fromYaw(double) - Static method in enum class de.jeff_media.jefflib.data.CardinalDirection
Converts a given yaw value to its cardinal direction

G

GeometryUtils - Class in de.jeff_media.jefflib
Geometry related methods
GeometryUtils() - Constructor for class de.jeff_media.jefflib.GeometryUtils
 
get(ItemStack, String, PersistentDataType<T, Z>) - Static method in class de.jeff_media.jefflib.PDCUtils
Deprecated.
 
get(PersistentDataHolder, String, PersistentDataType<T, Z>) - Static method in class de.jeff_media.jefflib.PDCUtils
Deprecated.
 
getAllValues(ItemStack) - Static method in class de.jeff_media.jefflib.NBTAPI
Deprecated.
 
getAllValues(PersistentDataHolder) - Static method in class de.jeff_media.jefflib.NBTAPI
Deprecated.
 
getB() - Method in class de.jeff_media.jefflib.data.HexColor
Returns the Blue color component value
getBlockDataAsEntries(Block) - Static method in class de.jeff_media.jefflib.BlockUtils
Returns a list of entries containing all BlockData from a given block
getBlocksInRadius(Location, int, BlockUtils.RadiusType) - Static method in class de.jeff_media.jefflib.BlockUtils
Gets all blocks in a given radius around a center location
getBlocksInRadius(Location, int, BlockUtils.RadiusType, Predicate<Block>) - Static method in class de.jeff_media.jefflib.BlockUtils
Gets all blocks in a given radius around a center location that matches the given Predicate (see also BlockUtils.Predicates
getCenter(Block) - Static method in class de.jeff_media.jefflib.BlockUtils
Returns the center location of a block
getChunkCoordinates(int, int) - Static method in class de.jeff_media.jefflib.LocationUtils
Returns a LocationUtils.ChunkCoordinates object for the given x and z coordinates
getChunkCoordinates(Location) - Static method in class de.jeff_media.jefflib.LocationUtils
Returns a LocationUtils.ChunkCoordinates object for the given location
getClassCached(String) - Static method in class de.jeff_media.jefflib.ReflUtils
 
getConstructorCached(Class<?>) - Static method in class de.jeff_media.jefflib.ReflUtils
 
getConstructorCached(Class<?>, Class<?>...) - Static method in class de.jeff_media.jefflib.ReflUtils
 
getCoordinatesInsideChunk(Location) - Static method in class de.jeff_media.jefflib.LocationUtils
Converts a location to a Vector containing the location's coordinates inside the chunk (rounded to int values)
getDouble(double, double) - Static method in class de.jeff_media.jefflib.RandomUtils
Returns a double between (inclusive) and (exclusive)
getEntities(Block, Block) - Static method in class de.jeff_media.jefflib.EntityUtils
Gets all entities inside and
getEntities(Block, Block, Class<? extends Entity>) - Static method in class de.jeff_media.jefflib.EntityUtils
Gets all entities inside and that extend
getEntities(Block, Block, EntityType) - Static method in class de.jeff_media.jefflib.EntityUtils
Gets all entities inside min and max that belong to the given EntityType
getFieldCached(Class<?>, String) - Static method in class de.jeff_media.jefflib.ReflUtils
 
getFile(String...) - Static method in class de.jeff_media.jefflib.FileUtils
Gets a file in the data folder
getG() - Method in class de.jeff_media.jefflib.data.HexColor
Returns the Green color component value
getHandlerList() - Static method in class de.jeff_media.jefflib.events.PlayerScrollEvent
 
getHandlers() - Method in class de.jeff_media.jefflib.events.PlayerScrollEvent
 
getHexAtPositionInGradient(HexColor, HexColor, int, int) - Static method in class de.jeff_media.jefflib.data.HexColor
Returns the HexColor for a given gradient at the given position
getHollowCube(Location, Location, double) - Static method in class de.jeff_media.jefflib.GeometryUtils
Gets a set of all Locations in a specific distance describing a hollow cube around two locations
getInt(int, int) - Static method in class de.jeff_media.jefflib.RandomUtils
Returns an int between (inclusive) and (exclusive)
getKey(String) - Static method in class de.jeff_media.jefflib.PDCUtils
Deprecated.
Creates a NamespacedKey.
getKeys(ItemStack) - Method in class de.jeff_media.jefflib.PDCUtils
Deprecated.
 
getKeys(PersistentDataHolder) - Method in class de.jeff_media.jefflib.PDCUtils
Deprecated.
 
getLevel(ItemStack, Enchantment) - Static method in class de.jeff_media.jefflib.EnchantmentUtils
Returns the level of an enchantment on the given item, or 0 if it's not enchanted with this enchantment
getLocationFromSection(ConfigurationSection, World) - Static method in class de.jeff_media.jefflib.LocationUtils
Gets a Location from a ConfigurationSection.
getMajor() - Static method in class de.jeff_media.jefflib.McVersion
Returns the Major version of the MC version, e.g. 1 for 1.16.5
getMajor() - Method in class de.jeff_media.jefflib.ReflUtils.NMSVersion
 
getMethodCached(Class<?>, String) - Static method in class de.jeff_media.jefflib.ReflUtils
 
getMethodCached(Class<?>, String, Class<?>...) - Static method in class de.jeff_media.jefflib.ReflUtils
 
getMinecraftNamespacedName(Material) - Static method in class de.jeff_media.jefflib.MaterialUtils
Returns the "vanilla namespaced" name for this material, e.g.
getMinor() - Static method in class de.jeff_media.jefflib.McVersion
Returns the Minor version of the MC version, e.g. 16 for 1.16.5
getMinor() - Method in class de.jeff_media.jefflib.ReflUtils.NMSVersion
 
getNBT(ItemStack, String) - Static method in class de.jeff_media.jefflib.NBTAPI
Deprecated.
 
getNBT(ItemStack, String, String) - Static method in class de.jeff_media.jefflib.NBTAPI
Deprecated.
 
getNBT(PersistentDataHolder, String) - Static method in class de.jeff_media.jefflib.NBTAPI
Deprecated.
 
getNBT(PersistentDataHolder, String, String) - Static method in class de.jeff_media.jefflib.NBTAPI
Deprecated.
 
getNiceMaterialName(Material) - Static method in class de.jeff_media.jefflib.MaterialUtils
Turns Material names into a nicer name.
getNiceMaterialName(Material) - Static method in class de.jeff_media.jefflib.WordUtils
getNMSClass(String) - Static method in class de.jeff_media.jefflib.ReflUtils
 
getNMSVersion() - Static method in class de.jeff_media.jefflib.ReflUtils
 
getNmsVersionObject() - Static method in class de.jeff_media.jefflib.ReflUtils
 
getNonNullItems(ItemStack...) - Static method in class de.jeff_media.jefflib.ItemStackUtils
Returns an array of all given ItemStacks that are neither null nor AIR
getOBCClass(String) - Static method in class de.jeff_media.jefflib.ReflUtils
 
getOpposite(BlockFace) - Static method in class de.jeff_media.jefflib.BlockFaceUtils
Returns the opposite BlockFace for a given BlockFace.
getOrDefault(ItemStack, String, PersistentDataType<T, Z>, Z) - Static method in class de.jeff_media.jefflib.PDCUtils
Deprecated.
 
getOrDefault(PersistentDataHolder, String, PersistentDataType<T, Z>, Z) - Static method in class de.jeff_media.jefflib.PDCUtils
Deprecated.
 
getPatch() - Static method in class de.jeff_media.jefflib.McVersion
Returns the Patch version of the MC version, e.g. 5 for 1.16.5
getPlacedAgainstFace(Block, Block) - Static method in class de.jeff_media.jefflib.BlockFaceUtils
Gets the BlockFace of the existing block that must have been right-clicked to place the new Block
getPlayerPlacedBlocks(Chunk) - Static method in class de.jeff_media.jefflib.BlockTracker
Gets a collection of all blocks that have been placed by players inside a chunk
getPlugin() - Static method in class de.jeff_media.jefflib.JeffLib
Returns the Plugin instance.
getR() - Method in class de.jeff_media.jefflib.data.HexColor
Returns the Red color component value
getRandom() - Static method in class de.jeff_media.jefflib.JeffLib
Returns the Random instance.
getRandomEntry(Collection<T>) - Static method in class de.jeff_media.jefflib.CollectionUtils
Gets a random element from a collection
getRegionsAtLocation(Location) - Static method in class de.jeff_media.jefflib.internal.blackhole.WorldGuardHandler
 
getRegionsAtLocation(Location) - Static method in class de.jeff_media.jefflib.WorldGuardUtils
Gets a collection of all region names at a specific location
getRelease() - Method in class de.jeff_media.jefflib.ReflUtils.NMSVersion
 
getSelection(Player) - Static method in class de.jeff_media.jefflib.internal.blackhole.WorldEditHandler
 
getSelection(Player) - Static method in class de.jeff_media.jefflib.WorldEditUtils
Returns a WorldBoundingBox of the player's WorldEdit selection, or null if the player doesn't have any or only an incomplete selection.
getShortName() - Method in enum class de.jeff_media.jefflib.data.CardinalDirection
Gets the abbreviated direction name, e.g.
getSupportingBlock(Block) - Static method in class de.jeff_media.jefflib.BlockFaceUtils
Gets the block another block (e.g. a ladder) is attached to
getThreadLocalRandom() - Static method in class de.jeff_media.jefflib.JeffLib
Returns the ThreadLocalRandom instance.
getTotalXPRequiredForLevel(int) - Static method in class de.jeff_media.jefflib.ExpUtils
Gets the total amount of XP required to achieve a certain level when starting from 0 levels
getTrackedBlockTypes() - Static method in class de.jeff_media.jefflib.BlockTracker
Gets a collection containing all tracked materials
getTranslatedMaterialMap(File) - Static method in class de.jeff_media.jefflib.MaterialUtils
Reads Minecraft's client translation files into a map
getWorldList(FileConfiguration, String) - Static method in class de.jeff_media.jefflib.CollectionUtils
Returns a list of all loaded Worlds from a config's String list.
getX() - Method in class de.jeff_media.jefflib.LocationUtils.ChunkCoordinates
 
getXPRequiredForNextLevel(int) - Static method in class de.jeff_media.jefflib.ExpUtils
Gets the total amount of XP required to reach currentLevel+1 from currentLevel
getZ() - Method in class de.jeff_media.jefflib.LocationUtils.ChunkCoordinates
 
GRAVITY - Static variable in class de.jeff_media.jefflib.BlockUtils.Predicates
Represents all blocks affected by gravity
GUIUtils - Class in de.jeff_media.jefflib
GUI related methods
GUIUtils() - Constructor for class de.jeff_media.jefflib.GUIUtils
 
GUIUtils.MenuPosition - Class in de.jeff_media.jefflib
Represents a position inside a GUI

H

has(ItemStack, String, PersistentDataType<T, Z>) - Method in class de.jeff_media.jefflib.PDCUtils
Deprecated.
 
has(PersistentDataHolder, String, PersistentDataType<T, Z>) - Method in class de.jeff_media.jefflib.PDCUtils
Deprecated.
 
hashCode() - Method in class de.jeff_media.jefflib.data.HexColor
 
hashCode() - Method in class de.jeff_media.jefflib.data.tuples.Pair
 
hashCode() - Method in class de.jeff_media.jefflib.data.tuples.Quartet
 
hashCode() - Method in class de.jeff_media.jefflib.data.tuples.Quintet
 
hashCode() - Method in class de.jeff_media.jefflib.data.tuples.Triplet
 
hashCode() - Method in class de.jeff_media.jefflib.data.WorldBoundingBox
 
hashCode() - Method in class de.jeff_media.jefflib.ReflUtils.NMSVersion
 
hasNBT(ItemStack, String) - Static method in class de.jeff_media.jefflib.NBTAPI
Deprecated.
 
hasNBT(PersistentDataHolder, String) - Static method in class de.jeff_media.jefflib.NBTAPI
Deprecated.
 
HexColor - Class in de.jeff_media.jefflib.data
Represents a hex color code
HexColor(int, int, int) - Constructor for class de.jeff_media.jefflib.data.HexColor
Creates a HexColor with the given RGB value
HexColor(String) - Constructor for class de.jeff_media.jefflib.data.HexColor
Creates a HexColor from a String in the format "rrggbb" (e.g. 00ff00)
HexColor(String, String, String) - Constructor for class de.jeff_media.jefflib.data.HexColor
Creates a HexColor from three separate hex color Strings

I

init(Plugin) - Static method in class de.jeff_media.jefflib.JeffLib
Initializes the Library
init(Plugin, boolean) - Static method in class de.jeff_media.jefflib.JeffLib
Initializes the library.
INT - Static variable in class de.jeff_media.jefflib.PDCUtils
Deprecated.
 
INTERACTABLE - Static variable in class de.jeff_media.jefflib.BlockUtils.Predicates
Represents all interactable blocks
InternalOnly - Annotation Interface in de.jeff_media.jefflib.internal
Used to identify classes that should NOT be accessed from outside JeffLib itself!
INTS - Static variable in class de.jeff_media.jefflib.PDCUtils
Deprecated.
 
InvalidLocationDefinitionException - Exception in de.jeff_media.jefflib.exceptions
Gets thrown when a location definition inside a ConfigurationSection is invalid.
InvalidLocationDefinitionException(String) - Constructor for exception de.jeff_media.jefflib.exceptions.InvalidLocationDefinitionException
 
inventoryFromBase64(String) - Static method in class de.jeff_media.jefflib.ItemSerializer
A method to get an Inventory from an encoded, Base64, string.
InventoryUtils - Class in de.jeff_media.jefflib
Inventory related methods
InventoryUtils() - Constructor for class de.jeff_media.jefflib.InventoryUtils
 
isAtLeast(int, int, int) - Static method in class de.jeff_media.jefflib.McVersion
Checks whether the currently running MC version is at least the given version.
isCancelled() - Method in class de.jeff_media.jefflib.events.PlayerScrollEvent
 
isChunkGenerated(Location) - Static method in class de.jeff_media.jefflib.LocationUtils
Returns whether a chunk at a given location has been generated (without generating it)
isChunkLoaded(Location) - Static method in class de.jeff_media.jefflib.LocationUtils
Returns whether a chunk at a given location is loaded (without loading it)
isEmpty(ItemStack) - Method in class de.jeff_media.jefflib.PDCUtils
Deprecated.
 
isEmpty(PersistentDataHolder) - Method in class de.jeff_media.jefflib.PDCUtils
Deprecated.
 
isHigherThan(ReflUtils.NMSVersion) - Method in class de.jeff_media.jefflib.ReflUtils.NMSVersion
 
isHigherThanOrEqualTo(ReflUtils.NMSVersion) - Method in class de.jeff_media.jefflib.ReflUtils.NMSVersion
 
isInsideRegion(Location, String) - Static method in class de.jeff_media.jefflib.WorldGuardUtils
Checks whether a location is inside a region of the given name/id
isInstalledAndEnabled(String) - Static method in class de.jeff_media.jefflib.internal.PluginUtils
Checks whether a plugin is installed and enabled
isLowerThan(ReflUtils.NMSVersion) - Method in class de.jeff_media.jefflib.ReflUtils.NMSVersion
 
isLowerThanOrEqualTo(ReflUtils.NMSVersion) - Method in class de.jeff_media.jefflib.ReflUtils.NMSVersion
 
isNullOrEmpty(ItemStack) - Static method in class de.jeff_media.jefflib.ItemStackUtils
 
isPlayerPlacedBlock(Block) - Static method in class de.jeff_media.jefflib.BlockTracker
Checks whether a given block has been placed by a player
isRunningSpigot() - Static method in class de.jeff_media.jefflib.JeffLib
Checks whether Spigot or a fork is running
isTrackedBlockType(Material) - Static method in class de.jeff_media.jefflib.BlockTracker
Checks whether a given material is already one of the tracked block types.
isWorldEditInstalled() - Static method in class de.jeff_media.jefflib.WorldEditUtils
Checks whether WorldEdit is installed and enabled
isWorldGuardInstalled() - Static method in class de.jeff_media.jefflib.WorldGuardUtils
Checks whether WorldGuard is installed and enabled
ItemBuilder - Class in de.jeff_media.jefflib
Provides a builder for ItemStacks
ItemBuilder(Material) - Constructor for class de.jeff_media.jefflib.ItemBuilder
Creates a new ItemBuilder with the given material and an amount of 1
ItemBuilder(Material, int) - Constructor for class de.jeff_media.jefflib.ItemBuilder
Creates a new ItemBuilder with the given material and amount
ItemSerializer - Class in de.jeff_media.jefflib
Provides methods to serialize and deserialize ItemStacks, ItemStack arrays and Inventories to/from byte arrays and/or base64
ItemSerializer() - Constructor for class de.jeff_media.jefflib.ItemSerializer
 
itemStackArrayFromBase64(String) - Static method in class de.jeff_media.jefflib.ItemSerializer
Gets an array of ItemStacks from Base64 string.
itemStackArrayToBase64(ItemStack[]) - Static method in class de.jeff_media.jefflib.ItemSerializer
A method to serialize an ItemStack array to Base64 String.
ItemStackUtils - Class in de.jeff_media.jefflib
ItemStack related methods
ItemStackUtils() - Constructor for class de.jeff_media.jefflib.ItemStackUtils
 

J

JeffLib - Class in de.jeff_media.jefflib
Main class of the library, has to be initialized for certain methods to work.
JeffLibNotInitializedException - Exception in de.jeff_media.jefflib.exceptions
Gets thrown when a plugin attempts to use an API method that needs initialization first, without having called JeffLib.init(Plugin) or JeffLib.init(Plugin, boolean) first.
JeffLibNotInitializedException() - Constructor for exception de.jeff_media.jefflib.exceptions.JeffLibNotInitializedException
 

L

LocationUtils - Class in de.jeff_media.jefflib
Location related methods
LocationUtils() - Constructor for class de.jeff_media.jefflib.LocationUtils
 
LocationUtils.ChunkCoordinates - Class in de.jeff_media.jefflib
Represents a pair of X,Z chunk coordinates

M

MaterialUtils - Class in de.jeff_media.jefflib
Material related methods
MaterialUtils() - Constructor for class de.jeff_media.jefflib.MaterialUtils
 
McVersion - Class in de.jeff_media.jefflib
Represents a Minecraft version, e.g. "1.16.5"
McVersion() - Constructor for class de.jeff_media.jefflib.McVersion
 
MenuPosition(int, int) - Constructor for class de.jeff_media.jefflib.GUIUtils.MenuPosition
 
mergeItemStacks(ItemStack...) - Static method in class de.jeff_media.jefflib.ItemStackUtils
Merges ItemStacks when possible
milliSecondsToTickPercentage(long) - Static method in class de.jeff_media.jefflib.TimeUtils
Converts an amount of milliseconds to tick percentage.
MissingPluginException - Exception in de.jeff_media.jefflib.exceptions
Gets thrown when a plugin is not installed that is required by a specific API method
MissingPluginException(String) - Constructor for exception de.jeff_media.jefflib.exceptions.MissingPluginException
 
Msg - Class in de.jeff_media.jefflib
Sends messages to CommandSenders while applying color codes, gradients, placeholders and emojis
Msg() - Constructor for class de.jeff_media.jefflib.Msg
 

N

nanoSecondsToMilliSeconds(long) - Static method in class de.jeff_media.jefflib.TimeUtils
Converts nanoseconds to milliseconds
nanoSecondsToMilliSecondsDouble(long) - Static method in class de.jeff_media.jefflib.TimeUtils
Converts nanoseconds to milliseconds, returning a double value
NBTAPI - Class in de.jeff_media.jefflib
Deprecated.
Use PDCUtils instead
NBTAPI() - Constructor for class de.jeff_media.jefflib.NBTAPI
Deprecated.
 
NO_GRAVITY - Static variable in class de.jeff_media.jefflib.BlockUtils.Predicates
Represents all blocks not affected by gravity
NORTH - Enum constant in enum class de.jeff_media.jefflib.data.CardinalDirection
 
NORTH_EAST - Enum constant in enum class de.jeff_media.jefflib.data.CardinalDirection
 
NORTH_NORTH_EAST - Enum constant in enum class de.jeff_media.jefflib.data.CardinalDirection
 
NORTH_NORTH_WEST - Enum constant in enum class de.jeff_media.jefflib.data.CardinalDirection
 
NORTH_WEST - Enum constant in enum class de.jeff_media.jefflib.data.CardinalDirection
 
NOT_AIR - Static variable in class de.jeff_media.jefflib.BlockUtils.Predicates
Represents all blocks except AIR and CAVE_AIR
NOT_BURNABLE - Static variable in class de.jeff_media.jefflib.BlockUtils.Predicates
Represents all non-burnable blocks
NOT_INTERACTABLE - Static variable in class de.jeff_media.jefflib.BlockUtils.Predicates
Represents all non-interactable blocks
NOT_OCCLUDING - Static variable in class de.jeff_media.jefflib.BlockUtils.Predicates
Represents all non-occluding blocks
NOT_SOLID - Static variable in class de.jeff_media.jefflib.BlockUtils.Predicates
Represents all non-solid blocks

O

OCCLUDING - Static variable in class de.jeff_media.jefflib.BlockUtils.Predicates
Represents all occluding blocks
onBreak(BlockBreakEvent) - Method in class de.jeff_media.jefflib.internal.listeners.BlockTrackListener
 
onPlace(BlockPlaceEvent) - Method in class de.jeff_media.jefflib.internal.listeners.BlockTrackListener
 
onScroll(PlayerItemHeldEvent) - Method in class de.jeff_media.jefflib.internal.listeners.PlayerScrollListener
 
onStructureGrow(StructureGrowEvent) - Method in class de.jeff_media.jefflib.internal.listeners.BlockTrackListener
 

P

Pair<A,​B> - Class in de.jeff_media.jefflib.data.tuples
Tuple of two values
Pair(A, B) - Constructor for class de.jeff_media.jefflib.data.tuples.Pair
 
ParticleUtils - Class in de.jeff_media.jefflib
Particle related methods
ParticleUtils() - Constructor for class de.jeff_media.jefflib.ParticleUtils
 
PDCUtils - Class in de.jeff_media.jefflib
Deprecated.
Draft, unfinished at the moment
PDCUtils() - Constructor for class de.jeff_media.jefflib.PDCUtils
Deprecated.
 
PlayerData - Class in de.jeff_media.jefflib
Deprecated.
Draft
PlayerData(UUID) - Constructor for class de.jeff_media.jefflib.PlayerData
Deprecated.
Creates new PlayerData or loads the existing PlayerData for the given UUID
PlayerData(OfflinePlayer) - Constructor for class de.jeff_media.jefflib.PlayerData
Deprecated.
Creates new PlayerData or loads the existing PlayerData for the given OfflinePlayer
playerInventoryToBase64(PlayerInventory) - Static method in class de.jeff_media.jefflib.ItemSerializer
Converts the player inventory to a String array of Base64 strings.
PlayerScrollEvent - Class in de.jeff_media.jefflib.events
Gets called when a player scrolls through their hotbar.
PlayerScrollEvent(Player, PlayerScrollEvent.ScrollDirection) - Constructor for class de.jeff_media.jefflib.events.PlayerScrollEvent
 
PlayerScrollEvent.ScrollDirection - Enum Class in de.jeff_media.jefflib.events
Represents the direction in which the player scrolled
PlayerScrollListener - Class in de.jeff_media.jefflib.internal.listeners
Listens to PlayerItemHeldEvent and calls the PlayerScrollEvent
PlayerScrollListener() - Constructor for class de.jeff_media.jefflib.internal.listeners.PlayerScrollListener
 
playToPlayer(Player) - Method in class de.jeff_media.jefflib.SoundData
Plays the sound only to the given player
playToPlayer(Player, Location) - Method in class de.jeff_media.jefflib.SoundData
Plays the sound only to the given player, at the given location
playToWorld(Location) - Method in class de.jeff_media.jefflib.SoundData
Plays the sound to all players in the world, at the given location
PluginUtils - Class in de.jeff_media.jefflib.internal
 
PluginUtils() - Constructor for class de.jeff_media.jefflib.internal.PluginUtils
 
positionToSlot(GUIUtils.MenuPosition) - Static method in class de.jeff_media.jefflib.GUIUtils
Converts a GUIUtils.MenuPosition to a slot number
Predicates() - Constructor for class de.jeff_media.jefflib.BlockUtils.Predicates
 

Q

Quartet<A,​B,​C,​D> - Class in de.jeff_media.jefflib.data.tuples
Tuple of four values
Quartet(A, B, C, D) - Constructor for class de.jeff_media.jefflib.data.tuples.Quartet
 
Quintet<A,​B,​C,​D,​E> - Class in de.jeff_media.jefflib.data.tuples
Tuple of five values.
Quintet(A, B, C, D, E) - Constructor for class de.jeff_media.jefflib.data.tuples.Quintet
 

R

RandomUtils - Class in de.jeff_media.jefflib
Random number related methods
RandomUtils() - Constructor for class de.jeff_media.jefflib.RandomUtils
 
readFileFromResources(JavaPlugin, String) - Static method in class de.jeff_media.jefflib.FileUtils
Reads a file from the resources directory and returns it as List of Strings
ReflUtils - Class in de.jeff_media.jefflib
Reflection related methods, stolen from EssentialsX: https://github.com/EssentialsX/Essentials
ReflUtils.NMSVersion - Class in de.jeff_media.jefflib
https://gist.github.com/SupaHam/dad1db6406596c5f8e4b221ff473831c
registerCommand(String, String...) - Static method in class de.jeff_media.jefflib.CommandUtils
Registers a new command
remove(ItemStack, String) - Method in class de.jeff_media.jefflib.PDCUtils
Deprecated.
 
remove(PersistentDataHolder, String) - Method in class de.jeff_media.jefflib.PDCUtils
Deprecated.
 
removeNBT(ItemStack, String) - Static method in class de.jeff_media.jefflib.NBTAPI
Deprecated.
 
removeNBT(PersistentDataHolder, String) - Static method in class de.jeff_media.jefflib.NBTAPI
Deprecated.
 
removeTrackedBlockTypes(Collection<Material>) - Static method in class de.jeff_media.jefflib.BlockTracker
Removes all given block types from the list of tracked block types
replaceEmojis(String) - Static method in class de.jeff_media.jefflib.TextUtils
Replaces ItemsAdder emojis inside the given text when ItemsAdder is installed
replacePlaceholders(String, OfflinePlayer) - Static method in class de.jeff_media.jefflib.TextUtils
Replaces PlacerholderAPI placeholders inside the given text, when PlaceholderAPI is installed
replaceStringsInFile(File, String, String) - Static method in class de.jeff_media.jefflib.FileUtils
Replaces strings in a file line by line.

S

save() - Method in class de.jeff_media.jefflib.PlayerData
Deprecated.
Saves the data to file
saveAsync() - Method in class de.jeff_media.jefflib.PlayerData
Deprecated.
Saves the data to file asynchronously
send(CommandSender, String) - Static method in class de.jeff_media.jefflib.Msg
Sends a message to the given CommandSender, translating all placeholders / color codes.
send(CommandSender, String, OfflinePlayer) - Static method in class de.jeff_media.jefflib.Msg
Sends a message to the given CommandSender, translating all placeholders / color codes
set(ItemStack, String, PersistentDataType<T, Z>, Z) - Static method in class de.jeff_media.jefflib.PDCUtils
Deprecated.
 
set(PersistentDataHolder, String, PersistentDataType<T, Z>, Z) - Static method in class de.jeff_media.jefflib.PDCUtils
Deprecated.
Sets a value in the holder's PDC
setAmount(int) - Method in class de.jeff_media.jefflib.ItemBuilder
Sets the amount
setB(int) - Method in class de.jeff_media.jefflib.data.HexColor
Sets the Blue color component value
setCancelled(boolean) - Method in class de.jeff_media.jefflib.events.PlayerScrollEvent
 
setCustomModelData(Integer) - Method in class de.jeff_media.jefflib.ItemBuilder
Sets the item's Custom Model Data
setG(int) - Method in class de.jeff_media.jefflib.data.HexColor
Sets the Green color component value
setLore(String...) - Method in class de.jeff_media.jefflib.ItemBuilder
Sets the item's lore
setLore(List<String>) - Method in class de.jeff_media.jefflib.ItemBuilder
Sets the item's lore
setName(String) - Method in class de.jeff_media.jefflib.ItemBuilder
Sets the item's display name
setPlayerPlacedBlock(Block, boolean) - Static method in class de.jeff_media.jefflib.BlockTracker
Manually sets whether a player placed this block
setR(int) - Method in class de.jeff_media.jefflib.data.HexColor
Sets the Red color component value
slotToPosition(int) - Static method in class de.jeff_media.jefflib.GUIUtils
Converts a slot number to a GUIUtils.MenuPosition
SOLID - Static variable in class de.jeff_media.jefflib.BlockUtils.Predicates
Represents all solid blocks
sortByEntry(Map<K, V>) - Static method in class de.jeff_media.jefflib.CollectionUtils
Sorts a map by its values.
sortByEntry(Map<K, V>, Comparator<V>) - Static method in class de.jeff_media.jefflib.CollectionUtils
Sorts a map by its values according to the given Comparator.
SoundData - Class in de.jeff_media.jefflib
Data class to wrap all information needed to play a sound
SoundData() - Constructor for class de.jeff_media.jefflib.SoundData
 
SOUTH - Enum constant in enum class de.jeff_media.jefflib.data.CardinalDirection
 
SOUTH_EAST - Enum constant in enum class de.jeff_media.jefflib.data.CardinalDirection
 
SOUTH_SOUTH_EAST - Enum constant in enum class de.jeff_media.jefflib.data.CardinalDirection
 
SOUTH_SOUTH_WEST - Enum constant in enum class de.jeff_media.jefflib.data.CardinalDirection
 
SOUTH_WEST - Enum constant in enum class de.jeff_media.jefflib.data.CardinalDirection
 
SPHERE - Enum constant in enum class de.jeff_media.jefflib.BlockUtils.RadiusType
A sphere radius, for example all blocks within a range of X*X*X blocks that are not further away from the center than the given distance
startTimings(String) - Static method in class de.jeff_media.jefflib.TimeUtils
Starts to record the time, using a String identifier, to be used in conjunction with TimeUtils.endTimings(String)
STRING - Static variable in class de.jeff_media.jefflib.PDCUtils
Deprecated.
 

T

TextUtils - Class in de.jeff_media.jefflib
Methods related to color translation, placeholder and emoji application and more
TextUtils() - Constructor for class de.jeff_media.jefflib.TextUtils
 
Ticks - Class in de.jeff_media.jefflib
Converts seconds, minutes or hours to their correseponding amount of ticks
Ticks() - Constructor for class de.jeff_media.jefflib.Ticks
 
TimeUtils - Class in de.jeff_media.jefflib
Time related methods, like measuring time and converting nanoseconds to milliseconds, etc.
TimeUtils() - Constructor for class de.jeff_media.jefflib.TimeUtils
 
toBase64(Inventory) - Static method in class de.jeff_media.jefflib.ItemSerializer
A method to serialize an inventory to Base64 string.
toBase64(ItemStack) - Static method in class de.jeff_media.jefflib.ItemSerializer
Turns an ItemStack into a Base64 String
toBytes(ItemStack) - Static method in class de.jeff_media.jefflib.ItemSerializer
Turns an ItemStack into a byte array
toColorCode() - Method in class de.jeff_media.jefflib.data.HexColor
Converts the HexColor into color codes readable by ChatColor.translateAlternateColorCodes(char, String), using the ampersand (&) as alternate color character
toHex() - Method in class de.jeff_media.jefflib.data.HexColor
Returns the HexColor as a String in the format rrggbb (e.g. 00ff00)
toPrettyString(Location, boolean, boolean) - Static method in class de.jeff_media.jefflib.LocationUtils
Turns a location into a human readable String, optionally including yaw/pitch and the world.
toString() - Method in class de.jeff_media.jefflib.data.HexColor
 
toString() - Method in class de.jeff_media.jefflib.data.WorldBoundingBox
 
toString() - Method in class de.jeff_media.jefflib.LocationUtils.ChunkCoordinates
 
toString() - Method in class de.jeff_media.jefflib.ReflUtils.NMSVersion
 
trackAllBlockTypes() - Static method in class de.jeff_media.jefflib.BlockTracker
Tracks all materials
Triplet<A,​B,​C> - Class in de.jeff_media.jefflib.data.tuples
Tuple of three values
Triplet(A, B, C) - Constructor for class de.jeff_media.jefflib.data.tuples.Triplet
 

U

UP - Enum constant in enum class de.jeff_media.jefflib.events.PlayerScrollEvent.ScrollDirection
Represents scrolling up / to the right
upperCaseFirstLetter(String) - Static method in class de.jeff_media.jefflib.WordUtils
Turns the first letter of a String to uppercase
upperCaseFirstLetterOnly(String) - Static method in class de.jeff_media.jefflib.WordUtils
Turns the first letter of a String to uppercase, while making the rest lowercase

V

V1_11_R1 - Static variable in class de.jeff_media.jefflib.ReflUtils
 
V1_12_R1 - Static variable in class de.jeff_media.jefflib.ReflUtils
 
V1_9_R1 - Static variable in class de.jeff_media.jefflib.ReflUtils
 
valueOf(String) - Static method in enum class de.jeff_media.jefflib.BlockUtils.RadiusType
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class de.jeff_media.jefflib.data.CardinalDirection
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class de.jeff_media.jefflib.events.PlayerScrollEvent.ScrollDirection
Returns the enum constant of this class with the specified name.
values() - Static method in enum class de.jeff_media.jefflib.BlockUtils.RadiusType
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in enum class de.jeff_media.jefflib.data.CardinalDirection
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in enum class de.jeff_media.jefflib.events.PlayerScrollEvent.ScrollDirection
Returns an array containing the constants of this enum class, in the order they are declared.

W

WEST - Enum constant in enum class de.jeff_media.jefflib.data.CardinalDirection
 
WEST_NORTH_WEST - Enum constant in enum class de.jeff_media.jefflib.data.CardinalDirection
 
WEST_SOUTH_WEST - Enum constant in enum class de.jeff_media.jefflib.data.CardinalDirection
 
WordUtils - Class in de.jeff_media.jefflib
Word related methods, like capitalization
WordUtils() - Constructor for class de.jeff_media.jefflib.WordUtils
 
WorldBoundingBox - Class in de.jeff_media.jefflib.data
Represents a BoundingBox linked to a World
WorldBoundingBox(World, BoundingBox) - Constructor for class de.jeff_media.jefflib.data.WorldBoundingBox
 
WorldEditHandler - Class in de.jeff_media.jefflib.internal.blackhole
 
WorldEditHandler() - Constructor for class de.jeff_media.jefflib.internal.blackhole.WorldEditHandler
 
WorldEditUtils - Class in de.jeff_media.jefflib
WorldEdit related methods.
WorldEditUtils() - Constructor for class de.jeff_media.jefflib.WorldEditUtils
 
WorldGuardHandler - Class in de.jeff_media.jefflib.internal.blackhole
 
WorldGuardHandler() - Constructor for class de.jeff_media.jefflib.internal.blackhole.WorldGuardHandler
 
WorldGuardUtils - Class in de.jeff_media.jefflib
WorldGuard related methods.
WorldGuardUtils() - Constructor for class de.jeff_media.jefflib.WorldGuardUtils
 
writeToFile(File, List<String>) - Static method in class de.jeff_media.jefflib.FileUtils
Replaces or creates a file with the given content
A B C D E F G H I J L M N O P Q R S T U V W 
All Classes|All Packages|Deprecated API|Serialized Form