Index
All Classes and Interfaces|All Packages
A
- abs() - Method in class net.apartium.cocoabeans.space.ImmutablePosition
- abs() - Method in class net.apartium.cocoabeans.space.Position
-
Sets the x, y, z coordinates to their absolute values.
- accept(byte) - Method in interface net.apartium.cocoabeans.functions.ByteConsumer
- accept(float) - Method in interface net.apartium.cocoabeans.functions.FloatConsumer
- add(E) - Method in class net.apartium.cocoabeans.collect.WeightSet
-
You should prefer
put(Object, double)over this method, since you can specify weight with it - add(Position) - Method in class net.apartium.cocoabeans.space.ImmutablePosition
- add(Position) - Method in class net.apartium.cocoabeans.space.Position
-
Adds another position to this position.
- add(Position, Position) - Static method in class net.apartium.cocoabeans.space.Position
-
Adds two positions and returns a new position.
- add(Rotation) - Method in class net.apartium.cocoabeans.space.Rotation
-
Add another rotation to this rotation
- addAll(Collection<? extends E>) - Method in class net.apartium.cocoabeans.collect.WeightSet
- addElementSorted(List<E>, E, Comparator<E>) - Static method in class net.apartium.cocoabeans.CollectionHelpers
- appendToSearchPath(URLClassLoader, File) - Static method in class net.apartium.cocoabeans.reflect.ClassLoaderUtils
-
Appends a jar file — or every jar inside a directory tree — to the search path of the given
URLClassLoader, making any classes and resources inside them resolvable through that loader. - areaSize(int, int, int) - Method in enum class net.apartium.cocoabeans.space.axis.AxisOrder
-
Creates an AreaSize object using the specified values for each axis according to this order.
- AreaSize - Record Class in net.apartium.cocoabeans.space
-
Represents the size of a 3D area with width, height, and depth.
- AreaSize(double, double, double) - Constructor for record class net.apartium.cocoabeans.space.AreaSize
-
Creates an instance of a
AreaSizerecord class. - AreaSize(AreaSize) - Constructor for record class net.apartium.cocoabeans.space.AreaSize
-
Constructs a new AreaSize by copying another AreaSize.
- available() - Method in class net.apartium.cocoabeans.seekable.SeekableInputStream
- Axis - Enum Class in net.apartium.cocoabeans.space.axis
- AxisOrder - Enum Class in net.apartium.cocoabeans.space.axis
-
Represents the order of axes in 3D space and provides utilities for working with positions and dimensions according to the specified axis order.
B
- base32() - Static method in interface net.apartium.cocoabeans.encode.BaseConverter
-
Returns a Base 32 alphabet converter [A-Z, 2-7, = for padding]
- BaseConverter - Interface in net.apartium.cocoabeans.encode
-
BaseConverter interface for encoding and decoding data
- box(double) - Static method in record class net.apartium.cocoabeans.space.AreaSize
-
Creates a cubic AreaSize with all sides equal to the given length.
- box(Position, Position) - Static method in interface net.apartium.cocoabeans.space.Region
-
Create a box region between 2 positions
- BoxRegion - Class in net.apartium.cocoabeans.space
- BoxRegion(double, double, double, double, double, double) - Constructor for class net.apartium.cocoabeans.space.BoxRegion
- BoxRegion(Position, Position) - Constructor for class net.apartium.cocoabeans.space.BoxRegion
- BoxSurfaceIterator - Class in net.apartium.cocoabeans.space.iterator
-
Iterates over all positions on the surface of an axis-aligned box.
- BoxSurfaceIterator(int) - Constructor for class net.apartium.cocoabeans.space.iterator.BoxSurfaceIterator
-
Creates an iterator over a cube shell centered at 0 with the given radius.
- BoxSurfaceIterator(int, int) - Constructor for class net.apartium.cocoabeans.space.iterator.BoxSurfaceIterator
-
Creates an iterator over a cube shell in the range
[min, max]using the defaultAxisOrder.XYZ. - BoxSurfaceIterator(AxisOrder, int, int) - Constructor for class net.apartium.cocoabeans.space.iterator.BoxSurfaceIterator
-
Creates an iterator over a cube shell in the range
[min, max]. - BoxSurfaceIterator(AxisOrder, Position, Position) - Constructor for class net.apartium.cocoabeans.space.iterator.BoxSurfaceIterator
-
Creates an iterator over the surface of a rectangular box.
- BufferUtils - Class in net.apartium.cocoabeans.utils
-
Utility class for binary data, encoding, and serialization operations.
- byId(byte) - Static method in enum class net.apartium.cocoabeans.space.axis.AxisOrder
-
Returns the AxisOrder constant by its id.
- ByteArraySeekableChannel - Class in net.apartium.cocoabeans.seekable
- ByteArraySeekableChannel() - Constructor for class net.apartium.cocoabeans.seekable.ByteArraySeekableChannel
- ByteArraySeekableChannel(int) - Constructor for class net.apartium.cocoabeans.seekable.ByteArraySeekableChannel
- ByteConsumer - Interface in net.apartium.cocoabeans.functions
C
- CallerUtils - Class in net.apartium.cocoabeans.utils
-
A utility class to detect caller
- ceil() - Method in class net.apartium.cocoabeans.space.ImmutablePosition
- ceil() - Method in class net.apartium.cocoabeans.space.Position
-
Ceils the x, y, z coordinates.
- ClassLoaderUtils - Class in net.apartium.cocoabeans.reflect
-
Helpers for working with
ClassLoaderinstances at runtime. - ClassUtils - Class in net.apartium.cocoabeans.reflect
-
Utilities to work with Java classes
- ClassUtils() - Constructor for class net.apartium.cocoabeans.reflect.ClassUtils
- clear() - Method in class net.apartium.cocoabeans.collect.WeightSet
- close() - Method in class net.apartium.cocoabeans.seekable.ByteArraySeekableChannel
- close() - Method in class net.apartium.cocoabeans.seekable.SeekableInputStream
- close() - Method in class net.apartium.cocoabeans.seekable.SeekableOutputStream
- CodeGenerator - Interface in net.apartium.cocoabeans.security.totp
- CodeVerifier - Interface in net.apartium.cocoabeans.security.totp
-
Use this interface to verify if the given totp code is valid (it's safe against timing attacks)
- CollectionHelpers - Class in net.apartium.cocoabeans
-
Helper class to aid working with java collections
- CollectionHelpers() - Constructor for class net.apartium.cocoabeans.CollectionHelpers
- compare(Position, Position) - Method in enum class net.apartium.cocoabeans.space.axis.AxisOrder
-
Compares two positions according to this axis order.
- compareTo(MinecraftVersion) - Method in record class net.apartium.cocoabeans.structs.MinecraftVersion
- ConstructorUtils - Class in net.apartium.cocoabeans.reflect
-
Utilities to work with java Constructor class
- ConstructorUtils() - Constructor for class net.apartium.cocoabeans.reflect.ConstructorUtils
- contains(byte) - Method in class net.apartium.cocoabeans.collect.ImmutableByteArrayList
- contains(Object) - Method in class net.apartium.cocoabeans.collect.WeightSet
- contains(Position) - Method in class net.apartium.cocoabeans.space.BoxRegion
- contains(Position) - Method in interface net.apartium.cocoabeans.space.Region
-
Check if the position is in the region
- contains(Position) - Method in class net.apartium.cocoabeans.space.SphereRegion
- containsAll(Collection<?>) - Method in class net.apartium.cocoabeans.collect.WeightSet
- containsStartsWith(Collection<String>, String, String) - Static method in class net.apartium.cocoabeans.CollectionHelpers
-
Checks whether given string contains AT LEAST ONE OF the values in given collection
- copy() - Method in class net.apartium.cocoabeans.space.Position
-
Creates a copy of this position.
- crc32(byte[]) - Static method in class net.apartium.cocoabeans.utils.BufferUtils
-
Computes the CRC32 checksum of the given byte array.
- create() - Static method in interface net.apartium.cocoabeans.security.totp.CodeGenerator
- create() - Static method in interface net.apartium.cocoabeans.utils.TimeProvider
-
Create a TimeProvider using the system time
- create(int) - Static method in class net.apartium.cocoabeans.security.totp.SecretGenerator
- create(Clock) - Static method in interface net.apartium.cocoabeans.utils.TimeProvider
-
Create a TimeProvider using the given clock
- create(HashingAlgorithm, int) - Static method in interface net.apartium.cocoabeans.security.totp.CodeGenerator
- create(CodeGenerator, TimeProvider) - Static method in interface net.apartium.cocoabeans.security.totp.CodeVerifier
- create(CodeGenerator, TimeProvider, int, int) - Static method in interface net.apartium.cocoabeans.security.totp.CodeVerifier
- createOccupancyMask(List<T>) - Static method in class net.apartium.cocoabeans.utils.BufferUtils
-
Creates an occupancy mask (bitmask) for a list, where each bit represents whether the element passes the filter.
- createOccupancyMask(List<T>, Predicate<T>) - Static method in class net.apartium.cocoabeans.utils.BufferUtils
-
Creates an occupancy mask (bitmask) for a list, using a custom filter.
- createOccupancyMask(T[]) - Static method in class net.apartium.cocoabeans.utils.BufferUtils
-
Creates an occupancy mask (bitmask) for an array, where each bit represents whether the element passes the filter.
- createOccupancyMask(T[], Predicate<T>) - Static method in class net.apartium.cocoabeans.utils.BufferUtils
-
Creates an occupancy mask (bitmask) for an array, using a custom filter.
- crossProduct(Position) - Method in class net.apartium.cocoabeans.space.ImmutablePosition
- crossProduct(Position) - Method in class net.apartium.cocoabeans.space.Position
-
Computes the cross product with another position.
D
- decode(String) - Method in interface net.apartium.cocoabeans.encode.BaseConverter
-
Decodes string to data
- depth() - Method in record class net.apartium.cocoabeans.space.AreaSize
-
Returns the value of the
depthrecord component. - dispense(Throwable) - Static method in class net.apartium.cocoabeans.Dispensers
-
Propagate given exception, wrap as RuntimeException if needed
- Dispensers - Class in net.apartium.cocoabeans
- Dispensers() - Constructor for class net.apartium.cocoabeans.Dispensers
- distance(Position) - Method in class net.apartium.cocoabeans.space.BoxRegion
- distance(Position) - Method in class net.apartium.cocoabeans.space.Position
-
Returns the distance between this and another position.
- distance(Position) - Method in interface net.apartium.cocoabeans.space.Region
-
Return the distance between region and position If position is inside the region, return 0 (Note that this is not the same as the distance between the region and the center of the region) (Note this method is more expensive than
Region.contains(Position)method when you just want to check if the position is inside the region) - distance(Position) - Method in class net.apartium.cocoabeans.space.SphereRegion
- distanceSquared(Position) - Method in class net.apartium.cocoabeans.space.Position
-
Returns the squared distance between this and another position.
- divide(double) - Method in class net.apartium.cocoabeans.space.ImmutablePosition
- divide(double) - Method in class net.apartium.cocoabeans.space.Position
-
Divides this position by a scalar.
- DNSLookup - Class in net.apartium.cocoabeans.utils
-
A utility for performing DNS lookups
- DNSLookup(InitialDirContext) - Constructor for class net.apartium.cocoabeans.utils.DNSLookup
-
Create a DNSLookup class with custom options
- dot(Position) - Method in class net.apartium.cocoabeans.space.Position
-
Computes the dot product with another position.
- dot(Rotation) - Method in class net.apartium.cocoabeans.space.Rotation
-
Calculate the dot product of this rotation with another
- DOWN - Static variable in class net.apartium.cocoabeans.space.Position
-
Position at (0, -1, 0).
- Dummies - Class in net.apartium.cocoabeans.collect
-
A utility class providing "dummy" implementations of java collection api classes.
- Dummies() - Constructor for class net.apartium.cocoabeans.collect.Dummies
- dummyCollection() - Static method in class net.apartium.cocoabeans.collect.Dummies
-
Returns the dummy collection instance
- dummyList() - Static method in class net.apartium.cocoabeans.collect.Dummies
-
Returns the dummy list instance
- dummyMap() - Static method in class net.apartium.cocoabeans.collect.Dummies
-
Returns the dummy map instance.
- dummySet() - Static method in class net.apartium.cocoabeans.collect.Dummies
-
Returns the dummy set instance
E
- empty() - Static method in class net.apartium.cocoabeans.utils.OptionalFloat
-
Retrieves a global empty OptionalFloat instance
- encode(byte[]) - Method in interface net.apartium.cocoabeans.encode.BaseConverter
-
Encode data to string
- Ensures - Class in net.apartium.cocoabeans
-
Helper class used to validate conditions
- Ensures() - Constructor for class net.apartium.cocoabeans.Ensures
- Entry<K,
V> - Record Class in net.apartium.cocoabeans.structs - Entry(K, V) - Constructor for record class net.apartium.cocoabeans.structs.Entry
-
Creates an instance of a
Entryrecord class. - equals(Object) - Method in class net.apartium.cocoabeans.collect.ImmutableByteArrayList
- equals(Object) - Method in record class net.apartium.cocoabeans.space.AreaSize
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in class net.apartium.cocoabeans.space.Position
- equals(Object) - Method in class net.apartium.cocoabeans.space.Rotation
- equals(Object) - Method in class net.apartium.cocoabeans.space.Transform
- equals(Object) - Method in record class net.apartium.cocoabeans.structs.Entry
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class net.apartium.cocoabeans.structs.MinecraftPlatform
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class net.apartium.cocoabeans.structs.MinecraftVersion
-
Check if two versions are equal
- equals(Object) - Method in record class net.apartium.cocoabeans.structs.NamespacedKey
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in class net.apartium.cocoabeans.utils.OptionalFloat
- equalsArray(Object[], Object[]) - Static method in class net.apartium.cocoabeans.CollectionHelpers
-
Checks for array content equality, regardless of order
- equalsCollections(Collection<?>, Collection<?>) - Static method in class net.apartium.cocoabeans.CollectionHelpers
-
Determines whether two collections are equal, and in the same order
- equalsList(List<?>, List<?>) - Static method in class net.apartium.cocoabeans.CollectionHelpers
-
Checks for list content equality, regardless of order
F
- FieldUtils - Class in net.apartium.cocoabeans.reflect
-
Utilities to work with java Field class
- FieldUtils() - Constructor for class net.apartium.cocoabeans.reflect.FieldUtils
- filter(FloatPredicate) - Method in class net.apartium.cocoabeans.utils.OptionalFloat
-
Filters given instance.
- FloatConsumer - Interface in net.apartium.cocoabeans.functions
- FloatPredicate - Interface in net.apartium.cocoabeans.functions
- FloatSupplier - Interface in net.apartium.cocoabeans.functions
- FloatToObject<E> - Interface in net.apartium.cocoabeans.functions
- floor() - Method in record class net.apartium.cocoabeans.space.AreaSize
-
Returns a new AreaSize with each dimension floored to the nearest integer.
- floor() - Method in class net.apartium.cocoabeans.space.ImmutablePosition
- floor() - Method in class net.apartium.cocoabeans.space.Position
-
Floors the x, y, z coordinates.
- flush() - Method in class net.apartium.cocoabeans.seekable.SeekableOutputStream
-
SeekableByteChannel doesn't have a buffer so nothing we need to do
- forEach(ByteConsumer) - Method in class net.apartium.cocoabeans.collect.ImmutableByteArrayList
- fromDirection(double, double) - Static method in class net.apartium.cocoabeans.space.Position
-
Returns a position based on yaw and pitch angles.
G
- generate(String, long) - Method in interface net.apartium.cocoabeans.security.totp.CodeGenerator
- generate(Random) - Method in class net.apartium.cocoabeans.security.totp.SecretGenerator
- get(int) - Method in class net.apartium.cocoabeans.collect.ImmutableByteArrayList
- getAllMethods(Class<?>) - Static method in class net.apartium.cocoabeans.reflect.MethodUtils
-
Get all methods from given class by recursion getting declared methods from super class
- getAlong(AreaSize) - Method in enum class net.apartium.cocoabeans.space.axis.Axis
- getAlong(Position) - Method in enum class net.apartium.cocoabeans.space.axis.Axis
- getAsFloat() - Method in interface net.apartium.cocoabeans.functions.FloatSupplier
- getAsFloat() - Method in class net.apartium.cocoabeans.utils.OptionalFloat
-
Retrieves current value as float, or throws an exception if empty
- getAxes() - Method in enum class net.apartium.cocoabeans.space.axis.AxisOrder
-
Returns the list of axes in this order.
- getByProtocolVersion(int) - Static method in record class net.apartium.cocoabeans.structs.MinecraftVersion
-
Returns all minecraft versions corresponding to given protocol version
- getCallerClassExcept(Class<?>) - Static method in class net.apartium.cocoabeans.utils.CallerUtils
-
Find caller class, excluding given clazz
- getCallerClassNameExcept(Class<?>) - Static method in class net.apartium.cocoabeans.utils.CallerUtils
-
Find caller class, excluding given clazz
- getCenter() - Method in class net.apartium.cocoabeans.space.SphereRegion
- getDeclaredConstructors(Class<T>) - Static method in class net.apartium.cocoabeans.reflect.ConstructorUtils
-
Retrieves all constructors of given class object from library cache
- getDeclaredFieldsByExactType(Class<?>, Class<?>) - Static method in class net.apartium.cocoabeans.reflect.FieldUtils
-
Get all declared fields whose type is the same of given fieldType
- getDeclaredMethods(Class<?>) - Static method in class net.apartium.cocoabeans.reflect.MethodUtils
-
Get declared methods from given class
- getDirectionVector() - Method in class net.apartium.cocoabeans.space.Transform
-
Create a direction vector based on the current rotation
- getFieldsByExactType(Class<?>, Class<?>) - Static method in class net.apartium.cocoabeans.reflect.FieldUtils
-
Get all fields whose type is the same of given fieldType
- getFirst() - Method in enum class net.apartium.cocoabeans.space.axis.AxisOrder
-
Returns the first axis in this order.
- getFriendlyName() - Method in enum class net.apartium.cocoabeans.security.HashingAlgorithm
- getHmacAlgorithm() - Method in enum class net.apartium.cocoabeans.security.HashingAlgorithm
- getId() - Method in enum class net.apartium.cocoabeans.space.axis.AxisOrder
-
Returns the id of this AxisOrder.
- getInterfaceMethod(Method, Class<?>) - Static method in class net.apartium.cocoabeans.reflect.MethodUtils
-
Get interface method from the reflection cache
- getInterfacesMethods(Method) - Static method in class net.apartium.cocoabeans.reflect.MethodUtils
-
Get methods from interfaces from the reflection cache
- getMethods(Class<?>) - Static method in class net.apartium.cocoabeans.reflect.MethodUtils
-
Get methods from given class
- getMethodsFromSuperClassAndInterface(Method) - Static method in class net.apartium.cocoabeans.reflect.MethodUtils
-
Get all methods from super class / interface
- getOrThrow(Supplier<RuntimeException>) - Method in class net.apartium.cocoabeans.utils.OptionalFloat
-
Retrieves current value, or throws given exception if nul
- getPercentage(E) - Method in class net.apartium.cocoabeans.collect.WeightSet
-
Get weight of given element as percentage of total weight in weight set
- getPitch() - Method in class net.apartium.cocoabeans.space.Rotation
-
Returns the pitch
- getPitch() - Method in class net.apartium.cocoabeans.space.Transform
-
Returns the pitch
- getPosition() - Method in class net.apartium.cocoabeans.space.Transform
-
Returns the position Changes on the returned object will be reflected in this one
- getRadius() - Method in class net.apartium.cocoabeans.space.SphereRegion
- getRotation() - Method in class net.apartium.cocoabeans.space.Transform
-
Returns the rotation Changes on the returned object will be reflected in this one
- getSecond() - Method in enum class net.apartium.cocoabeans.space.axis.AxisOrder
-
Returns the second axis in this order.
- getSuperClassAndInterfaces(Class<T>) - Static method in class net.apartium.cocoabeans.reflect.ClassUtils
-
Recursively find all super classes and super interfaces for given class object.
- getSuperClassMethod(Method) - Static method in class net.apartium.cocoabeans.reflect.MethodUtils
-
Get method from super class via reflection cache
- getThird() - Method in enum class net.apartium.cocoabeans.space.axis.AxisOrder
-
Returns the third axis in this order.
- getTime() - Method in interface net.apartium.cocoabeans.utils.TimeProvider
-
Get the current time in milliseconds
- getVersion(int, int, int) - Static method in record class net.apartium.cocoabeans.structs.MinecraftVersion
- getVersion(int, int, int, Supplier<Integer>) - Static method in record class net.apartium.cocoabeans.structs.MinecraftVersion
-
Get Minecraft Version by lookup table or create new one
- getWeight(E) - Method in class net.apartium.cocoabeans.collect.WeightSet
-
Get weight associated with given element
- getWeightOrDefault(E, double) - Method in class net.apartium.cocoabeans.collect.WeightSet
-
Get weight associated with given element
- getX() - Method in class net.apartium.cocoabeans.space.Position
-
Returns the x coordinate.
- getX() - Method in class net.apartium.cocoabeans.space.Transform
-
Returns the x coordinate
- getX0() - Method in class net.apartium.cocoabeans.space.BoxRegion
- getX1() - Method in class net.apartium.cocoabeans.space.BoxRegion
- getY() - Method in class net.apartium.cocoabeans.space.Position
-
Returns the y coordinate.
- getY() - Method in class net.apartium.cocoabeans.space.Transform
-
Returns the y coordinate
- getY0() - Method in class net.apartium.cocoabeans.space.BoxRegion
- getY1() - Method in class net.apartium.cocoabeans.space.BoxRegion
- getYaw() - Method in class net.apartium.cocoabeans.space.Rotation
-
Returns the yaw
- getYaw() - Method in class net.apartium.cocoabeans.space.Transform
-
Returns the yaw
- getZ() - Method in class net.apartium.cocoabeans.space.Position
-
Returns the z coordinate.
- getZ() - Method in class net.apartium.cocoabeans.space.Transform
-
Returns the z coordinate
- getZ0() - Method in class net.apartium.cocoabeans.space.BoxRegion
- getZ1() - Method in class net.apartium.cocoabeans.space.BoxRegion
H
- hashCode() - Method in class net.apartium.cocoabeans.collect.ImmutableByteArrayList
- hashCode() - Method in record class net.apartium.cocoabeans.space.AreaSize
-
Returns a hash code value for this object.
- hashCode() - Method in class net.apartium.cocoabeans.space.Position
- hashCode() - Method in class net.apartium.cocoabeans.space.Rotation
- hashCode() - Method in class net.apartium.cocoabeans.space.Transform
- hashCode() - Method in record class net.apartium.cocoabeans.structs.Entry
-
Returns a hash code value for this object.
- hashCode() - Method in record class net.apartium.cocoabeans.structs.MinecraftPlatform
-
Returns a hash code value for this object.
- hashCode() - Method in record class net.apartium.cocoabeans.structs.MinecraftVersion
-
Returns a hash code value for this object.
- hashCode() - Method in record class net.apartium.cocoabeans.structs.NamespacedKey
-
Returns a hash code value for this object.
- hashCode() - Method in class net.apartium.cocoabeans.utils.OptionalFloat
- HashingAlgorithm - Enum Class in net.apartium.cocoabeans.security
- hasNext() - Method in class net.apartium.cocoabeans.space.iterator.BoxSurfaceIterator
-
Returns whether another surface position is available.
- height() - Method in record class net.apartium.cocoabeans.space.AreaSize
-
Returns the value of the
heightrecord component.
I
- ifPresent(FloatConsumer) - Method in class net.apartium.cocoabeans.utils.OptionalFloat
-
Executes given consumer if current instance is not empty
- immutable() - Method in class net.apartium.cocoabeans.space.ImmutablePosition
- immutable() - Method in class net.apartium.cocoabeans.space.Position
-
Returns an immutable version of this position.
- ImmutableByteArrayList - Class in net.apartium.cocoabeans.collect
-
A basic, immutable list-like object which does not make use of the wrapper type to function.
- ImmutablePosition - Class in net.apartium.cocoabeans.space
-
Immutable version of Position When the position is modified, a new Position is created and the original one is left unchanged
- ImmutablePosition(double, double, double) - Constructor for class net.apartium.cocoabeans.space.ImmutablePosition
- ImmutablePosition(Position) - Constructor for class net.apartium.cocoabeans.space.ImmutablePosition
- indexOf(byte) - Method in class net.apartium.cocoabeans.collect.ImmutableByteArrayList
- isEmpty() - Method in class net.apartium.cocoabeans.collect.ImmutableByteArrayList
- isEmpty() - Method in class net.apartium.cocoabeans.collect.WeightSet
- isEmpty() - Method in class net.apartium.cocoabeans.utils.OptionalFloat
-
Checks whether current instance is empty.
- isFalse(boolean) - Static method in class net.apartium.cocoabeans.Ensures
-
Makes sure given condition is false
- isFalse(boolean, RuntimeException) - Static method in class net.apartium.cocoabeans.Ensures
-
Makes sure given condition is false
- isFalse(boolean, String) - Static method in class net.apartium.cocoabeans.Ensures
-
Makes sure given condition is false
- isHigherThan(MinecraftVersion) - Method in record class net.apartium.cocoabeans.structs.MinecraftVersion
-
Helper method to check if current instance is higher than given version
- isHigherThanOrEqual(MinecraftVersion) - Method in record class net.apartium.cocoabeans.structs.MinecraftVersion
-
Helper method to check if current instance is higher than or equal to given version
- isJarFile(File) - Static method in class net.apartium.cocoabeans.reflect.ClassLoaderUtils
-
Tells whether
fileis an existing regular file whose name identifies it as a jar. - isLowerThan(MinecraftVersion) - Method in record class net.apartium.cocoabeans.structs.MinecraftVersion
-
Helper method to check if current instance is lower than given version
- isLowerThanOrEqual(MinecraftVersion) - Method in record class net.apartium.cocoabeans.structs.MinecraftVersion
-
Helper method to check if current instance is lower than or equal to given version
- isNullOrEmpty(String) - Static method in class net.apartium.cocoabeans.StringHelpers
-
Checks if given string is null or empty.
- isOpen() - Method in class net.apartium.cocoabeans.seekable.ByteArraySeekableChannel
- isPresent() - Method in class net.apartium.cocoabeans.utils.OptionalFloat
- isProtocolKnown() - Method in record class net.apartium.cocoabeans.structs.MinecraftVersion
-
Detects whether current instance represents a known version
- isSorted(List<T>, Comparator<? super T>) - Static method in class net.apartium.cocoabeans.CollectionHelpers
-
Determines whether a list is sorted according to provided comparator
- isTrue(boolean) - Static method in class net.apartium.cocoabeans.Ensures
-
Makes sure given condition is true
- isTrue(boolean, RuntimeException) - Static method in class net.apartium.cocoabeans.Ensures
-
Makes sure given condition is true
- isTrue(boolean, String) - Static method in class net.apartium.cocoabeans.Ensures
-
Makes sure given condition is true
- isUnknown() - Method in record class net.apartium.cocoabeans.structs.MinecraftVersion
-
Detects whether current instance represents an unknown version
- isValidCode(String, String) - Method in interface net.apartium.cocoabeans.security.totp.CodeVerifier
-
Use this method to check if the given code is valid (it's safe against timing attacks)
- isValidJarName(String) - Static method in class net.apartium.cocoabeans.reflect.ClassLoaderUtils
-
Tells whether
fileNamematches the expected naming convention for a jar archive. - isZero() - Method in class net.apartium.cocoabeans.space.Position
-
Checks if this position is zero (all coordinates are 0).
- iterator() - Method in class net.apartium.cocoabeans.collect.ImmutableByteArrayList
- iterator() - Method in class net.apartium.cocoabeans.collect.WeightSet
- iterator(Position, Position, double) - Method in enum class net.apartium.cocoabeans.space.axis.AxisOrder
-
Returns an iterator over positions between pos0 and pos1 with the given step, following this axis order.
K
- key() - Method in record class net.apartium.cocoabeans.structs.Entry
-
Returns the value of the
keyrecord component. - key() - Method in record class net.apartium.cocoabeans.structs.NamespacedKey
-
Returns the value of the
keyrecord component. - KNOWN_VERSIONS - Static variable in record class net.apartium.cocoabeans.structs.MinecraftVersion
L
- largerThan(int, int, RuntimeException) - Static method in class net.apartium.cocoabeans.Ensures
-
Makes sure given number is larger than second given number.
- largerThan(int, int, String) - Static method in class net.apartium.cocoabeans.Ensures
-
Makes sure given number is larger than second given number.
- lastIndexOf(byte) - Method in class net.apartium.cocoabeans.collect.ImmutableByteArrayList
- length() - Method in class net.apartium.cocoabeans.space.Position
-
Returns the length (magnitude) of this position vector.
- lerp(double, double, double) - Static method in class net.apartium.cocoabeans.Mathf
-
Performs linear interpolation between two
doublevalues. - lerp(float, float, float) - Static method in class net.apartium.cocoabeans.Mathf
-
Performs linear interpolation between two
floatvalues. - lerp(int, int, float) - Static method in class net.apartium.cocoabeans.Mathf
-
Performs linear interpolation between two
intvalues. - lerp(long, long, float) - Static method in class net.apartium.cocoabeans.Mathf
-
Performs linear interpolation between two
longvalues. - log4(long) - Static method in class net.apartium.cocoabeans.Mathf
-
Computes the base-4 logarithm of the given value.
- LOG4_AS_VALUE - Static variable in class net.apartium.cocoabeans.Mathf
- lookAt(Position) - Method in class net.apartium.cocoabeans.space.Position
-
Returns a rotation based on the direction to a target position.
- lookup(String, String) - Method in class net.apartium.cocoabeans.utils.DNSLookup
-
Perform a simple forward lookup
M
- magnitude() - Method in class net.apartium.cocoabeans.space.Rotation
-
Calculate the magnitude (length) of this rotation vector
- major() - Method in record class net.apartium.cocoabeans.structs.MinecraftVersion
-
Returns the value of the
majorrecord component. - makeBetter(Collection<Byte>) - Static method in class net.apartium.cocoabeans.collect.ImmutableByteArrayList
-
Unwrap Byte collection as this type
- map(float) - Method in interface net.apartium.cocoabeans.functions.FloatToObject
- MapClassLoader - Class in net.apartium.cocoabeans.reflect
-
A
ClassLoaderthat defines a fixed set of classes provided at construction time from an in-memory mapping of fully-qualified binary name to JVM bytecode. - MapClassLoader(ClassLoader, Map<String, ImmutableByteArrayList>) - Constructor for class net.apartium.cocoabeans.reflect.MapClassLoader
-
Constructs a new
MapClassLoaderthat eagerly defines every entry ofclassDefsas a class loaded by this loader. - mapToObj(FloatToObject<E>) - Method in class net.apartium.cocoabeans.utils.OptionalFloat
-
Maps current value to an object.
- Mathf - Class in net.apartium.cocoabeans
-
A utility class providing mathematical functions.
- max(Position, Position) - Static method in class net.apartium.cocoabeans.space.Position
-
Returns the maximum of two positions for each coordinate.
- mergeInto(Map<K, V>, Map<K, V>) - Static method in class net.apartium.cocoabeans.CollectionHelpers
-
Put all entries from other map into map if key is not present
- MethodUtils - Class in net.apartium.cocoabeans.reflect
-
Utilities to work with java Method class
- MethodUtils() - Constructor for class net.apartium.cocoabeans.reflect.MethodUtils
- min(Position, Position) - Static method in class net.apartium.cocoabeans.space.Position
- MinecraftPlatform - Record Class in net.apartium.cocoabeans.structs
-
Represents a Minecraft platform, including its version, platform name, and platform version.
- MinecraftPlatform(MinecraftVersion, String, String) - Constructor for record class net.apartium.cocoabeans.structs.MinecraftPlatform
-
Creates an instance of a
MinecraftPlatformrecord class. - MinecraftVersion - Record Class in net.apartium.cocoabeans.structs
-
Represents version in the game.
- MinecraftVersion(int, int, int, int) - Constructor for record class net.apartium.cocoabeans.structs.MinecraftVersion
-
Creates an instance of a
MinecraftVersionrecord class. - minor() - Method in record class net.apartium.cocoabeans.structs.MinecraftVersion
-
Returns the value of the
minorrecord component. - multiply(double) - Method in class net.apartium.cocoabeans.space.ImmutablePosition
- multiply(double) - Method in class net.apartium.cocoabeans.space.Position
-
Multiplies this position by a scalar.
- multiply(double) - Method in class net.apartium.cocoabeans.space.Rotation
-
Multiply this rotation by a scalar
- multiply(Position, long) - Static method in class net.apartium.cocoabeans.space.Position
-
Multiplies a position by a long value and returns a new position.
N
- namespace() - Method in record class net.apartium.cocoabeans.structs.NamespacedKey
-
Returns the value of the
namespacerecord component. - NamespacedKey - Record Class in net.apartium.cocoabeans.structs
-
Represents a namespaced key, consisting of a namespace and a key string.
- NamespacedKey(String, String) - Constructor for record class net.apartium.cocoabeans.structs.NamespacedKey
-
Creates an instance of a
NamespacedKeyrecord class. - negate() - Method in class net.apartium.cocoabeans.space.ImmutablePosition
- negate() - Method in class net.apartium.cocoabeans.space.Position
-
Negates this position.
- net.apartium.cocoabeans - package net.apartium.cocoabeans
-
Main package for cocoa-beans
- net.apartium.cocoabeans.collect - package net.apartium.cocoabeans.collect
-
Custom collections and Java collections api helpers
- net.apartium.cocoabeans.encode - package net.apartium.cocoabeans.encode
-
BaseConverter interface for encoding and decoding data
BaseConverterBase32Converter - net.apartium.cocoabeans.functions - package net.apartium.cocoabeans.functions
-
Functional interfaces not included in the standard library
- net.apartium.cocoabeans.reflect - package net.apartium.cocoabeans.reflect
-
Reflection utilities
- net.apartium.cocoabeans.security - package net.apartium.cocoabeans.security
-
Security utilities
- net.apartium.cocoabeans.security.totp - package net.apartium.cocoabeans.security.totp
-
TOTP (Time-based One-Time Passwords) utilities When using TOTP you should use
CodeGeneratorandCodeVerifierWarning: It is not safe to Just useCodeGeneratorand then use String.equals() to check if the code is valid it vulnerable to timing attacks - net.apartium.cocoabeans.seekable - package net.apartium.cocoabeans.seekable
- net.apartium.cocoabeans.space - package net.apartium.cocoabeans.space
- net.apartium.cocoabeans.space.axis - package net.apartium.cocoabeans.space.axis
- net.apartium.cocoabeans.space.iterator - package net.apartium.cocoabeans.space.iterator
- net.apartium.cocoabeans.structs - package net.apartium.cocoabeans.structs
- net.apartium.cocoabeans.utils - package net.apartium.cocoabeans.utils
-
Misc utilities
- next() - Method in class net.apartium.cocoabeans.space.iterator.BoxSurfaceIterator
-
Returns the next surface position.
- nextPowerOfFour(long) - Static method in class net.apartium.cocoabeans.Mathf
-
Returns the next power of four greater than or equal to the given value.
- normalize() - Method in class net.apartium.cocoabeans.space.ImmutablePosition
- normalize() - Method in class net.apartium.cocoabeans.space.Position
-
Normalizes this position vector.
- normalize() - Method in class net.apartium.cocoabeans.space.Rotation
-
Normalize the rotation angles to be within standard ranges Yaw: [0, 360), Pitch: [-90, 90]
- notEmpty(Object[], RuntimeException) - Static method in class net.apartium.cocoabeans.Ensures
-
Make sure that given array is not null or empty
- notEmpty(Object[], String) - Static method in class net.apartium.cocoabeans.Ensures
-
Makes sure that given array is not null or empty
- notEmpty(String, RuntimeException) - Static method in class net.apartium.cocoabeans.Ensures
-
Validates if a String is empty or not
- notEmpty(String, String) - Static method in class net.apartium.cocoabeans.Ensures
-
Makes sure given string is not null or empty
- notEmpty(Collection<?>, RuntimeException) - Static method in class net.apartium.cocoabeans.Ensures
-
Makes sure that given collection is not null or empty
- notEmpty(Collection<?>, String) - Static method in class net.apartium.cocoabeans.Ensures
-
Makes sure that given collection is not null or empty
- notEmpty(Map<?, ?>, RuntimeException) - Static method in class net.apartium.cocoabeans.Ensures
-
Makes sure that given map is not null or empty
- notEmpty(Map<?, ?>, String) - Static method in class net.apartium.cocoabeans.Ensures
-
Makes sure that given map is not null or empty
- notNull(Object, RuntimeException) - Static method in class net.apartium.cocoabeans.Ensures
-
Checks if an object is null.
- notNull(Object, String) - Static method in class net.apartium.cocoabeans.Ensures
-
Make sure an object is not null.
O
- of() - Static method in class net.apartium.cocoabeans.collect.ImmutableByteArrayList
-
Returns an empty instance.
- of(byte...) - Static method in class net.apartium.cocoabeans.collect.ImmutableByteArrayList
-
Constructs a new instance of ImmutableByteArrayList with given values
- of(byte[]) - Static method in class net.apartium.cocoabeans.seekable.ByteArraySeekableChannel
- of(float) - Static method in class net.apartium.cocoabeans.utils.OptionalFloat
-
Creates a new OptionalFloat instance consisting of given value
- of(String) - Static method in enum class net.apartium.cocoabeans.security.HashingAlgorithm
- open(Path) - Static method in class net.apartium.cocoabeans.seekable.SeekableInputStream
-
Open a file as SeekableInputStream and if the file doesn't exist we create one
- open(Path) - Static method in class net.apartium.cocoabeans.seekable.SeekableOutputStream
-
Open a file as SeekableOutputStream and if the file doesn't exist we create one
- OptionalFloat - Class in net.apartium.cocoabeans.utils
-
A java optional like wrapper class for float primitive type
- orElse(float) - Method in class net.apartium.cocoabeans.utils.OptionalFloat
-
Returns current value, or given value if empty
- orElseGet(FloatSupplier) - Method in class net.apartium.cocoabeans.utils.OptionalFloat
-
Attempts to return current value, but if this instance is empty retrieves value from given supplier
P
- parseDouble(String) - Static method in class net.apartium.cocoabeans.StringHelpers
-
Attempts to parse given string arg as a number.
- parseFloat(String) - Static method in class net.apartium.cocoabeans.StringHelpers
-
Attempts to parse given string arg as a number.
- parseInteger(String) - Static method in class net.apartium.cocoabeans.StringHelpers
-
Attempts to parse given string arg as a number.
- parseLong(String) - Static method in class net.apartium.cocoabeans.StringHelpers
-
Attempts to parse given string arg as a number.
- peek() - Method in class net.apartium.cocoabeans.space.iterator.BoxSurfaceIterator
-
Returns the next surface position without advancing the iterator.
- pickEntry(Collection<E>, int) - Static method in class net.apartium.cocoabeans.CollectionHelpers
-
Attempts to pick entry from Collection by index.
- pickMany(int) - Method in class net.apartium.cocoabeans.collect.WeightSet
-
Randomly pick given number of elements from set based on their weight.
- pickMany(int, Random) - Method in class net.apartium.cocoabeans.collect.WeightSet
-
Randomly pick given number of elements from set based on their weight.
- pickOne() - Method in class net.apartium.cocoabeans.collect.WeightSet
-
Randomly pick one element from set based on their weight.
- pickOne(Random) - Method in class net.apartium.cocoabeans.collect.WeightSet
-
Randomly pick one element from set based on their weight.
- platformName() - Method in record class net.apartium.cocoabeans.structs.MinecraftPlatform
-
Returns the value of the
platformNamerecord component. - platformVersion() - Method in record class net.apartium.cocoabeans.structs.MinecraftPlatform
-
Returns the value of the
platformVersionrecord component. - position() - Method in class net.apartium.cocoabeans.seekable.ByteArraySeekableChannel
- position() - Method in class net.apartium.cocoabeans.seekable.SeekableInputStream
-
Current position
- position() - Method in class net.apartium.cocoabeans.seekable.SeekableOutputStream
-
Current position
- position(int, int, int) - Method in enum class net.apartium.cocoabeans.space.axis.AxisOrder
-
Creates a Position object using the specified values for each axis according to this order.
- position(long) - Method in class net.apartium.cocoabeans.seekable.ByteArraySeekableChannel
- position(long) - Method in class net.apartium.cocoabeans.seekable.SeekableInputStream
-
Jump to new position
- position(long) - Method in class net.apartium.cocoabeans.seekable.SeekableOutputStream
-
Jump to new position
- Position - Class in net.apartium.cocoabeans.space
-
Represents a mutable position in 3D space with double precision coordinates (x, y, z).
- Position(double, double, double) - Constructor for class net.apartium.cocoabeans.space.Position
-
Create a new position with the given coordinates.
- Position(Position) - Constructor for class net.apartium.cocoabeans.space.Position
-
Create a new position by copying another position.
- protocol() - Method in record class net.apartium.cocoabeans.structs.MinecraftVersion
-
Returns the value of the
protocolrecord component. - put(E, double) - Method in class net.apartium.cocoabeans.collect.WeightSet
-
Insert an element with given weight into the set
- putAll(Map<? extends E, ? extends Double>) - Method in class net.apartium.cocoabeans.collect.WeightSet
-
Put all entries from given map into current instance.
- putAll(WeightSet<E>) - Method in class net.apartium.cocoabeans.collect.WeightSet
-
Put all entries from given weight set instance into the current instance
R
- randomEntry(Collection<E>, Random) - Static method in class net.apartium.cocoabeans.CollectionHelpers
-
Picks a random entry from collection
- range(double, double, double) - Static method in class net.apartium.cocoabeans.CollectionHelpers
-
Construct a new instance with values consisting of specified range
- range(int, int, int) - Static method in class net.apartium.cocoabeans.CollectionHelpers
-
Construct a new instance with values consisting of specified range
- read() - Method in class net.apartium.cocoabeans.seekable.SeekableInputStream
- read(byte[], int, int) - Method in class net.apartium.cocoabeans.seekable.SeekableInputStream
- read(ByteBuffer) - Method in class net.apartium.cocoabeans.seekable.ByteArraySeekableChannel
- readEnum(DataInput, Class<T>, Supplier<T[]>) - Static method in class net.apartium.cocoabeans.utils.BufferUtils
-
Reads an enum value from the DataInput, using a fallback ordinal if the name is not found.
- readMapOfEnumBoolean(DataInputStream, Class<K>, Supplier<K[]>) - Static method in class net.apartium.cocoabeans.utils.BufferUtils
-
Reads a map of enum keys to boolean values from a DataInputStream.
- readMapOfEnums(DataInputStream, Class<K>, Supplier<K[]>, Class<V>, Supplier<V[]>) - Static method in class net.apartium.cocoabeans.utils.BufferUtils
-
Reads a map of enum keys to enum values from a DataInputStream.
- readString(DataInput) - Static method in class net.apartium.cocoabeans.utils.BufferUtils
-
Reads a UTF-8 string from the given DataInput.
- readString(DataInput, int) - Static method in class net.apartium.cocoabeans.utils.BufferUtils
-
Reads a UTF-8 string of the specified length from the given DataInput.
- readU16(DataInput) - Static method in class net.apartium.cocoabeans.utils.BufferUtils
-
Reads an unsigned 16-bit integer (2 bytes) from the given DataInput.
- readU24(DataInput) - Static method in class net.apartium.cocoabeans.utils.BufferUtils
-
Reads an unsigned 24-bit integer (3 bytes) from the given DataInput.
- readU32(DataInput) - Static method in class net.apartium.cocoabeans.utils.BufferUtils
-
Reads an unsigned 32-bit integer (4 bytes) from the given DataInput.
- readU64(DataInput) - Static method in class net.apartium.cocoabeans.utils.BufferUtils
-
Reads an unsigned 64-bit integer (8 bytes) from the given DataInput.
- Region - Interface in net.apartium.cocoabeans.space
-
Represents a region between 2 positions
- remove(Object) - Method in class net.apartium.cocoabeans.collect.WeightSet
- removeAll(Collection<?>) - Method in class net.apartium.cocoabeans.collect.WeightSet
- retainAll(Collection<?>) - Method in class net.apartium.cocoabeans.collect.WeightSet
- reverseLookup(InetAddress) - Method in class net.apartium.cocoabeans.utils.DNSLookup
-
Perform a reverse DNS lookup on given address
- rotate(Rotation) - Method in class net.apartium.cocoabeans.space.Transform
-
Rotate the transform by a given rotation
- Rotation - Class in net.apartium.cocoabeans.space
-
Rotation is 3D space
- Rotation(float, float) - Constructor for class net.apartium.cocoabeans.space.Rotation
-
Create a new rotation
- Rotation(Rotation) - Constructor for class net.apartium.cocoabeans.space.Rotation
-
Create a new rotation
- round() - Method in class net.apartium.cocoabeans.space.ImmutablePosition
- round() - Method in class net.apartium.cocoabeans.space.Position
-
Rounds the x, y, z coordinates.
- round(int) - Method in class net.apartium.cocoabeans.space.ImmutablePosition
- round(int) - Method in class net.apartium.cocoabeans.space.Position
-
Rounds the x, y, z coordinates to the specified number of decimal places.
S
- SecretGenerator - Class in net.apartium.cocoabeans.security.totp
- SeekableInputStream - Class in net.apartium.cocoabeans.seekable
- SeekableInputStream(SeekableByteChannel) - Constructor for class net.apartium.cocoabeans.seekable.SeekableInputStream
- SeekableOutputStream - Class in net.apartium.cocoabeans.seekable
- SeekableOutputStream(SeekableByteChannel) - Constructor for class net.apartium.cocoabeans.seekable.SeekableOutputStream
- set(Position, Position) - Method in class net.apartium.cocoabeans.space.BoxRegion
- setCenter(Position) - Method in class net.apartium.cocoabeans.space.SphereRegion
- setPitch(float) - Method in class net.apartium.cocoabeans.space.Rotation
-
Sets the pitch
- setPitch(float) - Method in class net.apartium.cocoabeans.space.Transform
-
Sets the pitch
- setPosition(Position) - Method in class net.apartium.cocoabeans.space.Transform
-
Sets the position
- setRadius(double) - Method in class net.apartium.cocoabeans.space.SphereRegion
- setRotation(Rotation) - Method in class net.apartium.cocoabeans.space.Transform
-
Sets the rotation
- setX(double) - Method in class net.apartium.cocoabeans.space.ImmutablePosition
- setX(double) - Method in class net.apartium.cocoabeans.space.Position
-
Sets the x coordinate.
- setX(double) - Method in class net.apartium.cocoabeans.space.Transform
-
Sets the x coordinate
- setX(double, double) - Method in class net.apartium.cocoabeans.space.BoxRegion
- setY(double) - Method in class net.apartium.cocoabeans.space.ImmutablePosition
- setY(double) - Method in class net.apartium.cocoabeans.space.Position
-
Sets the y coordinate.
- setY(double) - Method in class net.apartium.cocoabeans.space.Transform
-
Sets the y coordinate
- setY(double, double) - Method in class net.apartium.cocoabeans.space.BoxRegion
- setYaw(float) - Method in class net.apartium.cocoabeans.space.Rotation
-
Sets the yaw
- setYaw(float) - Method in class net.apartium.cocoabeans.space.Transform
-
Sets the yaw
- setZ(double) - Method in class net.apartium.cocoabeans.space.ImmutablePosition
- setZ(double) - Method in class net.apartium.cocoabeans.space.Position
-
Sets the z coordinate.
- setZ(double) - Method in class net.apartium.cocoabeans.space.Transform
-
Sets the z coordinate
- setZ(double, double) - Method in class net.apartium.cocoabeans.space.BoxRegion
- SHA1 - Enum constant in enum class net.apartium.cocoabeans.security.HashingAlgorithm
- SHA256 - Enum constant in enum class net.apartium.cocoabeans.security.HashingAlgorithm
- SHA512 - Enum constant in enum class net.apartium.cocoabeans.security.HashingAlgorithm
- size() - Method in class net.apartium.cocoabeans.collect.ImmutableByteArrayList
- size() - Method in class net.apartium.cocoabeans.collect.WeightSet
- size() - Method in class net.apartium.cocoabeans.seekable.ByteArraySeekableChannel
- size() - Method in class net.apartium.cocoabeans.seekable.SeekableInputStream
-
size of the entire channel
- size() - Method in class net.apartium.cocoabeans.seekable.SeekableOutputStream
-
size of the entire channel
- skip(long) - Method in class net.apartium.cocoabeans.seekable.SeekableInputStream
- sphere(Position, double) - Static method in interface net.apartium.cocoabeans.space.Region
-
Create a sphere region with center and radius
- SphereRegion - Class in net.apartium.cocoabeans.space
-
Represents a sphere region.
- SphereRegion(Position, double) - Constructor for class net.apartium.cocoabeans.space.SphereRegion
- stream() - Method in class net.apartium.cocoabeans.collect.ImmutableByteArrayList
- StringHelpers - Class in net.apartium.cocoabeans
-
A class consisting of string utility methods
- StringHelpers() - Constructor for class net.apartium.cocoabeans.StringHelpers
- subtract(Position) - Method in class net.apartium.cocoabeans.space.ImmutablePosition
- subtract(Position) - Method in class net.apartium.cocoabeans.space.Position
-
Subtracts another position from this position.
- subtract(Rotation) - Method in class net.apartium.cocoabeans.space.Rotation
-
Subtract another rotation from this rotation
T
- test(float) - Method in interface net.apartium.cocoabeans.functions.FloatPredicate
- TimeProvider - Interface in net.apartium.cocoabeans.utils
- toAreaSize() - Method in record class net.apartium.cocoabeans.space.AreaSize
-
Calculates the volume of the area as an integer, flooring each dimension first.
- toArray() - Method in class net.apartium.cocoabeans.collect.ImmutableByteArrayList
- toArray() - Method in class net.apartium.cocoabeans.collect.WeightSet
- toArray(T[]) - Method in class net.apartium.cocoabeans.collect.WeightSet
- toBooleanArray(long) - Static method in class net.apartium.cocoabeans.utils.BufferUtils
-
Converts a long value to a boolean array representing its bits.
- toByteArray() - Method in class net.apartium.cocoabeans.seekable.ByteArraySeekableChannel
- toString() - Method in class net.apartium.cocoabeans.collect.ImmutableByteArrayList
- toString() - Method in record class net.apartium.cocoabeans.space.AreaSize
-
Returns a string representation of this record class.
- toString() - Method in class net.apartium.cocoabeans.space.Position
- toString() - Method in class net.apartium.cocoabeans.space.Rotation
- toString() - Method in class net.apartium.cocoabeans.space.Transform
- toString() - Method in record class net.apartium.cocoabeans.structs.Entry
-
Returns a string representation of this record class.
- toString() - Method in record class net.apartium.cocoabeans.structs.MinecraftPlatform
-
Returns a string representation of this record class.
- toString() - Method in record class net.apartium.cocoabeans.structs.MinecraftVersion
-
Returns a string representation of this record class.
- toString() - Method in record class net.apartium.cocoabeans.structs.NamespacedKey
-
Returns a string representation of this record class.
- toString() - Method in class net.apartium.cocoabeans.utils.OptionalFloat
- totalWeight() - Method in class net.apartium.cocoabeans.collect.WeightSet
-
Get total weight of all elements in set
- toUUID(byte[]) - Static method in class net.apartium.cocoabeans.utils.BufferUtils
-
Converts a 16-byte array to a UUID.
- Transform - Class in net.apartium.cocoabeans.space
-
Represents a transform in 3D space, combining position and rotation
- Transform(double, double, double, float, float) - Constructor for class net.apartium.cocoabeans.space.Transform
-
Create a new transform
- Transform(Position, Rotation) - Constructor for class net.apartium.cocoabeans.space.Transform
-
Create a new transform
- Transform(Transform) - Constructor for class net.apartium.cocoabeans.space.Transform
-
Create a new transform from another one
- translate(Position) - Method in class net.apartium.cocoabeans.space.Transform
-
Translate the transform by a given position
- truncate(long) - Method in class net.apartium.cocoabeans.seekable.ByteArraySeekableChannel
U
- UNKNOWN - Static variable in record class net.apartium.cocoabeans.structs.MinecraftVersion
- UP - Static variable in class net.apartium.cocoabeans.space.Position
-
Position at (0, 1, 0).
- update() - Method in record class net.apartium.cocoabeans.structs.MinecraftVersion
-
Returns the value of the
updaterecord component.
V
- V1_10 - Static variable in record class net.apartium.cocoabeans.structs.MinecraftVersion
- V1_10_1 - Static variable in record class net.apartium.cocoabeans.structs.MinecraftVersion
- V1_10_2 - Static variable in record class net.apartium.cocoabeans.structs.MinecraftVersion
- V1_11 - Static variable in record class net.apartium.cocoabeans.structs.MinecraftVersion
- V1_11_1 - Static variable in record class net.apartium.cocoabeans.structs.MinecraftVersion
- V1_11_2 - Static variable in record class net.apartium.cocoabeans.structs.MinecraftVersion
- V1_12 - Static variable in record class net.apartium.cocoabeans.structs.MinecraftVersion
- V1_12_1 - Static variable in record class net.apartium.cocoabeans.structs.MinecraftVersion
- V1_12_2 - Static variable in record class net.apartium.cocoabeans.structs.MinecraftVersion
- V1_13 - Static variable in record class net.apartium.cocoabeans.structs.MinecraftVersion
- V1_13_1 - Static variable in record class net.apartium.cocoabeans.structs.MinecraftVersion
- V1_13_2 - Static variable in record class net.apartium.cocoabeans.structs.MinecraftVersion
- V1_14 - Static variable in record class net.apartium.cocoabeans.structs.MinecraftVersion
- V1_14_1 - Static variable in record class net.apartium.cocoabeans.structs.MinecraftVersion
- V1_14_2 - Static variable in record class net.apartium.cocoabeans.structs.MinecraftVersion
- V1_14_3 - Static variable in record class net.apartium.cocoabeans.structs.MinecraftVersion
- V1_14_4 - Static variable in record class net.apartium.cocoabeans.structs.MinecraftVersion
- V1_15 - Static variable in record class net.apartium.cocoabeans.structs.MinecraftVersion
- V1_15_1 - Static variable in record class net.apartium.cocoabeans.structs.MinecraftVersion
- V1_15_2 - Static variable in record class net.apartium.cocoabeans.structs.MinecraftVersion
- V1_16 - Static variable in record class net.apartium.cocoabeans.structs.MinecraftVersion
- V1_16_1 - Static variable in record class net.apartium.cocoabeans.structs.MinecraftVersion
- V1_16_2 - Static variable in record class net.apartium.cocoabeans.structs.MinecraftVersion
- V1_16_3 - Static variable in record class net.apartium.cocoabeans.structs.MinecraftVersion
- V1_16_4 - Static variable in record class net.apartium.cocoabeans.structs.MinecraftVersion
- V1_16_5 - Static variable in record class net.apartium.cocoabeans.structs.MinecraftVersion
- V1_17 - Static variable in record class net.apartium.cocoabeans.structs.MinecraftVersion
- V1_17_1 - Static variable in record class net.apartium.cocoabeans.structs.MinecraftVersion
- V1_18 - Static variable in record class net.apartium.cocoabeans.structs.MinecraftVersion
- V1_18_1 - Static variable in record class net.apartium.cocoabeans.structs.MinecraftVersion
- V1_18_2 - Static variable in record class net.apartium.cocoabeans.structs.MinecraftVersion
- V1_19 - Static variable in record class net.apartium.cocoabeans.structs.MinecraftVersion
- V1_19_1 - Static variable in record class net.apartium.cocoabeans.structs.MinecraftVersion
- V1_19_2 - Static variable in record class net.apartium.cocoabeans.structs.MinecraftVersion
- V1_19_3 - Static variable in record class net.apartium.cocoabeans.structs.MinecraftVersion
- V1_19_4 - Static variable in record class net.apartium.cocoabeans.structs.MinecraftVersion
- V1_20 - Static variable in record class net.apartium.cocoabeans.structs.MinecraftVersion
- V1_20_1 - Static variable in record class net.apartium.cocoabeans.structs.MinecraftVersion
- V1_20_2 - Static variable in record class net.apartium.cocoabeans.structs.MinecraftVersion
- V1_20_3 - Static variable in record class net.apartium.cocoabeans.structs.MinecraftVersion
- V1_20_4 - Static variable in record class net.apartium.cocoabeans.structs.MinecraftVersion
- V1_20_5 - Static variable in record class net.apartium.cocoabeans.structs.MinecraftVersion
- V1_20_6 - Static variable in record class net.apartium.cocoabeans.structs.MinecraftVersion
- V1_21 - Static variable in record class net.apartium.cocoabeans.structs.MinecraftVersion
- V1_21_1 - Static variable in record class net.apartium.cocoabeans.structs.MinecraftVersion
- V1_21_10 - Static variable in record class net.apartium.cocoabeans.structs.MinecraftVersion
- V1_21_11 - Static variable in record class net.apartium.cocoabeans.structs.MinecraftVersion
- V1_21_2 - Static variable in record class net.apartium.cocoabeans.structs.MinecraftVersion
- V1_21_3 - Static variable in record class net.apartium.cocoabeans.structs.MinecraftVersion
- V1_21_4 - Static variable in record class net.apartium.cocoabeans.structs.MinecraftVersion
- V1_21_5 - Static variable in record class net.apartium.cocoabeans.structs.MinecraftVersion
- V1_21_6 - Static variable in record class net.apartium.cocoabeans.structs.MinecraftVersion
- V1_21_7 - Static variable in record class net.apartium.cocoabeans.structs.MinecraftVersion
- V1_21_8 - Static variable in record class net.apartium.cocoabeans.structs.MinecraftVersion
- V1_21_9 - Static variable in record class net.apartium.cocoabeans.structs.MinecraftVersion
- V1_8 - Static variable in record class net.apartium.cocoabeans.structs.MinecraftVersion
- V1_8_1 - Static variable in record class net.apartium.cocoabeans.structs.MinecraftVersion
- V1_8_2 - Static variable in record class net.apartium.cocoabeans.structs.MinecraftVersion
- V1_8_3 - Static variable in record class net.apartium.cocoabeans.structs.MinecraftVersion
- V1_8_4 - Static variable in record class net.apartium.cocoabeans.structs.MinecraftVersion
- V1_8_5 - Static variable in record class net.apartium.cocoabeans.structs.MinecraftVersion
- V1_8_6 - Static variable in record class net.apartium.cocoabeans.structs.MinecraftVersion
- V1_8_7 - Static variable in record class net.apartium.cocoabeans.structs.MinecraftVersion
- V1_8_8 - Static variable in record class net.apartium.cocoabeans.structs.MinecraftVersion
- V1_8_9 - Static variable in record class net.apartium.cocoabeans.structs.MinecraftVersion
- V1_9 - Static variable in record class net.apartium.cocoabeans.structs.MinecraftVersion
- V1_9_1 - Static variable in record class net.apartium.cocoabeans.structs.MinecraftVersion
- V1_9_2 - Static variable in record class net.apartium.cocoabeans.structs.MinecraftVersion
- V1_9_3 - Static variable in record class net.apartium.cocoabeans.structs.MinecraftVersion
- V1_9_4 - Static variable in record class net.apartium.cocoabeans.structs.MinecraftVersion
- V26_1 - Static variable in record class net.apartium.cocoabeans.structs.MinecraftVersion
- V26_1_1 - Static variable in record class net.apartium.cocoabeans.structs.MinecraftVersion
- V26_1_2 - Static variable in record class net.apartium.cocoabeans.structs.MinecraftVersion
- V26_2 - Static variable in record class net.apartium.cocoabeans.structs.MinecraftVersion
- value() - Method in record class net.apartium.cocoabeans.structs.Entry
-
Returns the value of the
valuerecord component. - valueOf(String) - Static method in enum class net.apartium.cocoabeans.security.HashingAlgorithm
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class net.apartium.cocoabeans.space.axis.Axis
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class net.apartium.cocoabeans.space.axis.AxisOrder
-
Returns the enum constant of this class with the specified name.
- values() - Method in class net.apartium.cocoabeans.collect.WeightSet
-
Get all elements in this weight set
- values() - Static method in enum class net.apartium.cocoabeans.security.HashingAlgorithm
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class net.apartium.cocoabeans.space.axis.Axis
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class net.apartium.cocoabeans.space.axis.AxisOrder
-
Returns an array containing the constants of this enum class, in the order they are declared.
- version() - Method in record class net.apartium.cocoabeans.structs.MinecraftPlatform
-
Returns the value of the
versionrecord component.
W
- WeightSet<E> - Class in net.apartium.cocoabeans.collect
-
A set implementation with weighted keys This class is not thread safe.
- WeightSet() - Constructor for class net.apartium.cocoabeans.collect.WeightSet
-
Constructors an empty weight set instance
- WeightSet(Map<? extends E, ? extends Double>) - Constructor for class net.apartium.cocoabeans.collect.WeightSet
-
Construct a weight set instance from given map
- WeightSet(WeightSet<E>) - Constructor for class net.apartium.cocoabeans.collect.WeightSet
-
A copy constructor to create a new instance of WeightSet with same elements as given weight set
- width() - Method in record class net.apartium.cocoabeans.space.AreaSize
-
Returns the value of the
widthrecord component. - withDefaultOptions() - Static method in class net.apartium.cocoabeans.utils.DNSLookup
-
Create a DNSLookup instance with sane defaults
- write(byte[], int, int) - Method in class net.apartium.cocoabeans.seekable.SeekableOutputStream
- write(int) - Method in class net.apartium.cocoabeans.seekable.SeekableOutputStream
- write(ByteBuffer) - Method in class net.apartium.cocoabeans.seekable.ByteArraySeekableChannel
- writeEnum(Enum<T>) - Static method in class net.apartium.cocoabeans.utils.BufferUtils
-
Serializes an enum value to a byte array (name as string, then ordinal as int).
- writeMapOfEnumBoolean(Map<K, Boolean>) - Static method in class net.apartium.cocoabeans.utils.BufferUtils
-
Serializes a map of enum keys to boolean values to a byte array.
- writeMapOfEnums(Map<K, V>) - Static method in class net.apartium.cocoabeans.utils.BufferUtils
-
Serializes a map of enum keys to enum values to a byte array.
- writeString(String) - Static method in class net.apartium.cocoabeans.utils.BufferUtils
-
Encodes a string as a byte array prefixed with its length as a 32-bit unsigned integer.
- writeStringAsList(String) - Static method in class net.apartium.cocoabeans.utils.BufferUtils
-
Encodes a string as a List of bytes, prefixed with its length as a 32-bit unsigned integer.
- writeU16(int) - Static method in class net.apartium.cocoabeans.utils.BufferUtils
-
Writes a 16-bit unsigned integer to a byte array (big-endian).
- writeU24(int) - Static method in class net.apartium.cocoabeans.utils.BufferUtils
-
Writes a 24-bit unsigned integer to a byte array (big-endian).
- writeU32(int) - Static method in class net.apartium.cocoabeans.utils.BufferUtils
-
Writes a 32-bit unsigned integer to a byte array (big-endian).
- writeU64(long) - Static method in class net.apartium.cocoabeans.utils.BufferUtils
-
Writes a 64-bit unsigned integer to a byte array (big-endian).
X
- X - Enum constant in enum class net.apartium.cocoabeans.space.axis.Axis
- XYZ - Enum constant in enum class net.apartium.cocoabeans.space.axis.AxisOrder
-
X, then Y, then Z
- XZY - Enum constant in enum class net.apartium.cocoabeans.space.axis.AxisOrder
-
X, then Z, then Y
Y
- Y - Enum constant in enum class net.apartium.cocoabeans.space.axis.Axis
- YXZ - Enum constant in enum class net.apartium.cocoabeans.space.axis.AxisOrder
-
Y, then X, then Z
- YZX - Enum constant in enum class net.apartium.cocoabeans.space.axis.AxisOrder
-
Y, then Z, then X
Z
- Z - Enum constant in enum class net.apartium.cocoabeans.space.axis.Axis
- ZERO - Static variable in class net.apartium.cocoabeans.space.Position
-
Position at (0, 0, 0).
- ZXY - Enum constant in enum class net.apartium.cocoabeans.space.axis.AxisOrder
-
Z, then X, then Y
- ZYX - Enum constant in enum class net.apartium.cocoabeans.space.axis.AxisOrder
-
Z, then Y, then X
All Classes and Interfaces|All Packages