Class ColonyDeathpoints
java.lang.Object
com.minecolonies.core.compatibility.journeymap.ColonyDeathpoints
Utility class to manage colony deathpoint mapping.
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidclear()Clear overlay cache.static voidunload(@NotNull Journeymap jmap, @NotNull net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> dimension) Clears the overlay but not the cache.static voidupdateChunk(@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 voidupdateGraves(@NotNull Journeymap jmap, @NotNull IColonyView colony, @NotNull Set<net.minecraft.core.BlockPos> graves) Synchronise the list of currently-existing graves in the colony.
-
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 APIcolony- 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 APIdimension- The dimension of the world. Nothing happens unless this is the client world.chunk- The chunk that was just loaded.
-