Class RegionSpatialCache

java.lang.Object
de.z0rdak.yawp.handler.RegionSpatialCache

public final class RegionSpatialCache extends Object
  • Constructor Details

    • RegionSpatialCache

      public RegionSpatialCache(net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> level)
  • Method Details

    • get

      public static RegionSpatialCache get(net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> levelRl)
    • excludeLevel

      public static void excludeLevel(net.minecraft.resources.Identifier id)
    • excludes

      public static boolean excludes(net.minecraft.server.level.ServerLevel level)
    • initRegions

      public static void initRegions(net.minecraft.server.level.ServerLevel level)
    • onCreateRegion

      public static boolean onCreateRegion(RegionEvent.Create create)
    • onRemoveRegion

      public static boolean onRemoveRegion(RegionEvent.Remove remove)
    • onUpdateRegion

      public static boolean onUpdateRegion(RegionEvent.UpdateArea updateArea)
    • getLevel

      public net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> getLevel()
    • addRegion

      public void addRegion(IMarkableRegion region)
    • removeRegion

      public void removeRegion(IMarkableRegion region)
    • updateRegion

      public void updateRegion(IMarkableRegion region)
    • getRegionsAtSection

      public it.unimi.dsi.fastutil.objects.ObjectOpenHashSet<IMarkableRegion> getRegionsAtSection(net.minecraft.core.SectionPos pos)