Class ColonyDeathpoints

java.lang.Object
com.minecolonies.core.compatibility.journeymap.v5.ColonyDeathpoints

public class ColonyDeathpoints extends Object
Utility class to manage colony deathpoint mapping.
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    Clear overlay cache.
    static void
    unload(@NotNull Journeymap jmap, @NotNull net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> dimension)
    Clears the overlay but not the cache.
    static void
    updateChunk(@NotNull Journeymap jmap, @NotNull net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> dimension, @NotNull net.minecraft.world.level.chunk.ChunkAccess chunk)
    When a previously-unloaded chunk is loaded, we can refresh the deathpoint data for it.
    static void
    updateGraves(@NotNull Journeymap jmap, @NotNull IColonyView colony, @NotNull Set<net.minecraft.core.BlockPos> graves)
    Synchronise the list of currently-existing graves in the colony.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • clear

      public static void clear()
      Clear overlay cache. Note this does *not* remove the overlays from jmap
    • unload

      public static void unload(@NotNull @NotNull Journeymap jmap, @NotNull @NotNull net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> dimension)
      Clears the overlay but not the cache.
      Parameters:
      dimension - The dimension to unload.
    • updateGraves

      public static void updateGraves(@NotNull @NotNull Journeymap jmap, @NotNull @NotNull IColonyView colony, @NotNull @NotNull Set<net.minecraft.core.BlockPos> graves)
      Synchronise the list of currently-existing graves in the colony. (Can be called when there is no change.)
      Parameters:
      jmap - The JourneyMap API
      colony - The colony.
      graves - The list of grave positions.
    • updateChunk

      public static void updateChunk(@NotNull @NotNull Journeymap jmap, @NotNull @NotNull net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> dimension, @NotNull @NotNull net.minecraft.world.level.chunk.ChunkAccess chunk)
      When a previously-unloaded chunk is loaded, we can refresh the deathpoint data for it.
      Parameters:
      jmap - The JourneyMap API
      dimension - The dimension of the world. Nothing happens unless this is the client world.
      chunk - The chunk that was just loaded.