Package com.fastasyncworldedit.core
Enum Class FaweCache
- All Implemented Interfaces:
Trimable
,Serializable
,Comparable<FaweCache>
,Constable
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
Holds data for a palette used in a chunk sectionNested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final FaweException
static final FaweBlockBagException
final CleanableThreadLocal<long[]>
final CleanableThreadLocal<int[]>
final int
final CleanableThreadLocal<byte[]>
final char[]
final CleanableThreadLocal<int[]>
static final FaweException
static final FaweException
static final FaweException
static final FaweException
static final FaweException
static final FaweException
static final FaweException
static final FaweException
static final FaweException
final CleanableThreadLocal<int[]>
final CleanableThreadLocal<char[]>
static final FaweException
final CleanableThreadLocal<char[]>
final CleanableThreadLocal<int[]>
-
Method Summary
Modifier and TypeMethodDescriptionasTag
(byte value) asTag
(byte[] value) asTag
(double value) asTag
(float value) asTag
(int value) asTag
(int[] value) asTag
(long value) asTag
(long[] value) asTag
(short value) asTag
(Collection values) <T,
V> com.google.common.cache.LoadingCache<T, V> createCache
(Function<T, V> withInitial) <T,
V> com.google.common.cache.LoadingCache<T, V> createCache
(Supplier<V> withInitial) registerPool
(Class<T> clazz, Supplier<T> cache, boolean buffer) toPalette
(int layerOffset, char[] blocks) Convert raw char array to palettetoPalette
(int layerOffset, int[] blocks) Convert raw int array to palettetoPaletteUnstretched
(int layerOffset, char[] blocks) Convert raw int array to unstretched palette (1.16)boolean
trim
(boolean aggressive) Trims the object, reducing its memory footprint.static FaweCache
Returns the enum constant of this class with the specified name.static FaweCache[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
IMP
Deprecated, for removal: This API element is subject to removal in a future version.UseINSTANCE
to get an instance. -
INSTANCE
- Since:
- 2.0.0
-
-
Field Details
-
BLOCKS_PER_LAYER
public final int BLOCKS_PER_LAYER- See Also:
-
EMPTY_CHAR_4096
public final char[] EMPTY_CHAR_4096 -
BLOCK_BAG
-
MANUAL
-
NO_REGION
-
OUTSIDE_REGION
-
MAX_CHECKS
-
MAX_CHANGES
-
LOW_MEMORY
-
MAX_ENTITIES
-
MAX_TILES
-
MAX_ITERATIONS
-
PLAYER_ONLY
-
ACTOR_REQUIRED
-
CHUNK_FLAG
-
BYTE_BUFFER_8192
-
BLOCK_TO_PALETTE
-
SECTION_BITS_TO_CHAR
-
PALETTE_TO_BLOCK
-
PALETTE_TO_BLOCK_CHAR
-
BLOCK_STATES
-
SECTION_BLOCKS
-
INDEX_STORE
-
MUTABLE_BLOCKVECTOR3
-
MUTABLE_VECTOR3
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
trim
public boolean trim(boolean aggressive) Description copied from interface:Trimable
Trims the object, reducing its memory footprint. -
registerPool
-
createCache
-
createCache
-
toPalette
Convert raw char array to palette- Returns:
- palette
-
toPalette
Convert raw int array to palette- Returns:
- palette
-
toPaletteUnstretched
Convert raw int array to unstretched palette (1.16)- Returns:
- palette
-
asMap
-
asTag
-
asTag
-
asTag
-
asTag
-
asTag
-
asTag
-
asTag
-
asTag
-
asTag
-
asTag
-
asTag
-
asTag
-
asTag
-
asTag
-
newBlockingExecutor
-
INSTANCE
to get an instance.