Class RegionSpatialCache
java.lang.Object
de.z0rdak.yawp.handler.RegionSpatialCache
-
Constructor Summary
ConstructorsConstructorDescriptionRegionSpatialCache(net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> level) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddRegion(IMarkableRegion region) static voidexcludeLevel(net.minecraft.resources.Identifier id) static booleanexcludes(net.minecraft.server.level.ServerLevel level) static RegionSpatialCacheget(net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> levelRl) net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> getLevel()it.unimi.dsi.fastutil.objects.ObjectOpenHashSet<IMarkableRegion> getRegionsAtSection(net.minecraft.core.SectionPos pos) static voidinitRegions(net.minecraft.server.level.ServerLevel level) static booleanonCreateRegion(RegionEvent.Create create) static booleanonRemoveRegion(RegionEvent.Remove remove) static booleanonUpdateRegion(RegionEvent.UpdateArea updateArea) voidremoveRegion(IMarkableRegion region) voidupdateRegion(IMarkableRegion region)
-
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
-
onRemoveRegion
-
onUpdateRegion
-
getLevel
public net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> getLevel() -
addRegion
-
removeRegion
-
updateRegion
-
getRegionsAtSection
public it.unimi.dsi.fastutil.objects.ObjectOpenHashSet<IMarkableRegion> getRegionsAtSection(net.minecraft.core.SectionPos pos)
-