Contents
- Description
- Nested Class Summary
- Field Summary
- Constructor Summary
- Method Summary
- Field Details
- Constructor Details
- Method Details
- setPlayerUuid(UUID)
- unregisterEvents()
- tick(float)
- updateCurrentZoneAndBiome(Ref, WorldMapTracker.ZoneDiscoveryInfo, String, ComponentAccessor)
- getSentMarkers()
- getPlayer()
- getTransformComponent()
- clear()
- clearChunks(LongSet)
- sendSettings(World)
- discoverZone(World, String)
- undiscoverZone(World, String)
- discoverZones(World, Set)
- undiscoverZones(World, Set)
- isAllowTeleportToCoordinates(PlayerRef, Player)
- isAllowTeleportToMarkers(PlayerRef, Player)
- setPlayerMapFilter(Predicate)
- getViewRadiusOverride()
- getCurrentBiomeName()
- getCurrentZone()
- setViewRadiusOverride(Integer)
- getEffectiveViewRadius(World)
- shouldBeVisible(int, long)
- copyFrom(WorldMapTracker)
- shouldBeVisible(int, int, int, int, int)
Class WorldMapTracker
java.lang.Object
com.hypixel.hytale.server.core.universe.world.WorldMapTracker
- All Implemented Interfaces:
Tickable
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordContains zone discovery information passed from the world generator. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final float -
Constructor Summary
ConstructorsConstructorDescriptionWorldMapTracker(Player player) Default Constructor for aWorldMapTrackerinstance -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()voidclearChunks(it.unimi.dsi.fastutil.longs.LongSet chunkIndices) voidcopyFrom(WorldMapTracker worldMapTracker) booleandiscoverZone(World world, String zoneName) Called to mark a zone as discovered for the player.booleandiscoverZones(World world, Set<String> zoneNames) Called to mark multiple zones as discovered for the player.intgetEffectiveViewRadius(World world) static booleanisAllowTeleportToCoordinates(PlayerRef playerRef, Player player) booleanisAllowTeleportToMarkers(PlayerRef playerRef, Player player) voidsendSettings(World world) voidsetPlayerMapFilter(Predicate<PlayerRef> playerMapFilter) voidsetPlayerUuid(UUID uuid) voidsetViewRadiusOverride(Integer viewRadiusOverride) static booleanshouldBeVisible(int chunkViewRadius, int chunkX, int chunkZ, int x, int z) booleanshouldBeVisible(int chunkViewRadius, long chunkCoordinates) voidtick(float dt) Delta time in secondsbooleanundiscoverZone(World world, String zoneName) Called to mark a zone as undiscovered for the player.booleanundiscoverZones(World world, Set<String> zoneNames) Called to mark multiple zones as undiscovered for the player.voidvoidupdateCurrentZoneAndBiome(Ref<EntityStore> ref, WorldMapTracker.ZoneDiscoveryInfo zoneDiscoveryInfo, String biomeName, ComponentAccessor<EntityStore> componentAccessor) Called to update the current zone parameters for the player.
-
Field Details
-
UPDATE_SPEED
public static final float UPDATE_SPEED- See Also:
-
EMPTY_UPDATE_WORLD_MAP_SIZE
public static final int EMPTY_UPDATE_WORLD_MAP_SIZE- See Also:
-
MAX_IMAGE_GENERATION
public static final int MAX_IMAGE_GENERATION- See Also:
-
MAX_FRAME
public static final int MAX_FRAME- See Also:
-
-
Constructor Details
-
WorldMapTracker
Default Constructor for aWorldMapTrackerinstance- Parameters:
player- The associatedPlayerinstance
-
-
Method Details
-
setPlayerUuid
-
unregisterEvents
public void unregisterEvents() -
tick
-
updateCurrentZoneAndBiome
public void updateCurrentZoneAndBiome(@Nonnull Ref<EntityStore> ref, @Nullable WorldMapTracker.ZoneDiscoveryInfo zoneDiscoveryInfo, @Nullable String biomeName, @Nonnull ComponentAccessor<EntityStore> componentAccessor) Called to update the current zone parameters for the player.- Parameters:
ref- The entity reference of the player entity.zoneDiscoveryInfo- The zone discovery info containing zone details, ornullif not in a zone.biomeName- The name of the biome the player is currently in.componentAccessor- TheComponentAccessor<EntityStore>for component access.
-
getSentMarkers
-
getPlayer
-
getTransformComponent
-
clear
public void clear() -
clearChunks
public void clearChunks(@Nonnull it.unimi.dsi.fastutil.longs.LongSet chunkIndices) -
sendSettings
-
discoverZone
Called to mark a zone as discovered for the player.- Parameters:
world- The world the player is in.zoneName- The name of the zone to discover.- Returns:
trueif the zone was newly discovered;falseif it was already discovered.
-
undiscoverZone
Called to mark a zone as undiscovered for the player.- Parameters:
world- The world the player is in.zoneName- The name of the zone to undiscover.- Returns:
trueif the zone was undiscovered;falseif it was not previously discovered.
-
discoverZones
Called to mark multiple zones as discovered for the player.- Parameters:
world- The world the player is in.zoneNames- The set of zone names to discover.- Returns:
trueif any zone was newly discovered;falseif all were already discovered.
-
undiscoverZones
Called to mark multiple zones as undiscovered for the player.- Parameters:
world- The world the player is in.zoneNames- The set of zone names to undiscover.- Returns:
trueif any zone was undiscovered;falseif none were previously discovered.
-
isAllowTeleportToCoordinates
-
isAllowTeleportToMarkers
-
setPlayerMapFilter
-
getViewRadiusOverride
-
getCurrentBiomeName
-
getCurrentZone
-
setViewRadiusOverride
-
getEffectiveViewRadius
-
shouldBeVisible
public boolean shouldBeVisible(int chunkViewRadius, long chunkCoordinates) -
copyFrom
-
shouldBeVisible
public static boolean shouldBeVisible(int chunkViewRadius, int chunkX, int chunkZ, int x, int z)
-