Contents
Class DisabledFluidResource
java.lang.Object
com.hypixel.hytale.builtin.fluid.DisabledFluidResource
- All Implemented Interfaces:
Resource<ChunkStore>, Cloneable
A store resource that caches the resolved set of disabled fluid numeric IDs.
-
Field Summary
Fields inherited from interface Resource
EMPTY_ARRAY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()it.unimi.dsi.fastutil.ints.IntSetgetDisabledFluidIds(WorldConfig worldConfig) Returns the resolved set of disabled fluid numeric IDs for the given world config.static ResourceType<ChunkStore, DisabledFluidResource> voidInvalidates the cached disabled fluid IDs, forcing re-resolution on the next access.
-
Constructor Details
-
DisabledFluidResource
public DisabledFluidResource()
-
-
Method Details
-
getResourceType
-
getDisabledFluidIds
@Nonnull public it.unimi.dsi.fastutil.ints.IntSet getDisabledFluidIds(@Nonnull WorldConfig worldConfig) Returns the resolved set of disabled fluid numeric IDs for the given world config.Uses cached values when the config's disabled tickers set reference has not changed.
- Returns:
- the set of disabled fluid numeric IDs for the given world config.
-
invalidate
public void invalidate()Invalidates the cached disabled fluid IDs, forcing re-resolution on the next access. -
clone
- Specified by:
clonein interfaceResource<ChunkStore>- Returns:
- a clone instance of the original resource instance.
-