Class DisabledFluidResource

java.lang.Object
com.hypixel.hytale.builtin.fluid.DisabledFluidResource
All Implemented Interfaces:
Resource<ChunkStore>, Cloneable

public class DisabledFluidResource extends Object implements Resource<ChunkStore>
A store resource that caches the resolved set of disabled fluid numeric IDs.
  • Constructor Details

    • DisabledFluidResource

      public DisabledFluidResource()
  • Method Details

    • getResourceType

      @Nonnull public static ResourceType<ChunkStore, DisabledFluidResource> 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

      @Nonnull public Resource<ChunkStore> clone()
      Specified by:
      clone in interface Resource<ChunkStore>
      Returns:
      a clone instance of the original resource instance.