HyCodeYourTale
classpublicPriority 1

WorldMapTracker

com.hypixel.hytale.server.core.universe.world.WorldMapTracker

implements Tickable

28

Methods

28

Public Methods

15

Fields

1

Constructors

Constants

intEMPTY_MAP_CHUNK_SIZE= 10
intEMPTY_UPDATE_WORLD_MAP_SIZE= 13
intFULL_MAP_CHUNK_SIZE= 23
HytaleLoggerLOGGER= HytaleLogger.forEnclosingClass()
intMAX_FRAME= 2621440
intMAX_IMAGE_GENERATION= 20
floatMIN_PLAYER_MARKER_UPDATE_SPEED= 10.0F
intRADIUS_MAX= 512
floatUPDATE_SPEED= 1.0F

Constructors

public
WorldMapTracker(Player player)

Methods

Public Methods (28)

public
void clear()
public
void clearChunks(LongSet chunkIndices)
public
WorldMapTracker.ZoneDiscoveryInfo clone()
@Nonnull
public
void copyFrom(WorldMapTracker worldMapTracker)
public
boolean discoverZone(World world, String zoneName)
public
boolean discoverZones(World world, Set<String> zoneNames)
public
String getCurrentBiomeName()
@Nullable
public
WorldMapTracker.ZoneDiscoveryInfo getCurrentZone()
@Nullable
public
int getEffectiveViewRadius(World world)
public
Player getPlayer()
@Nonnull
public
Predicate<PlayerRef> getPlayerMapFilter()
public
Map<String, MapMarker> getSentMarkers()
@Nonnull
public
Integer getViewRadiusOverride()
@Nullable
public
boolean isAllowTeleportToCoordinates()
public
boolean isAllowTeleportToMarkers()
public
void resetPlayerMarkersUpdateTimer()
public
void sendSettings(World world)
public
void setAllowTeleportToCoordinates(World world, boolean allowTeleportToCoordinates)
public
void setAllowTeleportToMarkers(World world, boolean allowTeleportToMarkers)
public
void setClientHasWorldMapVisible(boolean visible)
public
void setPlayerMapFilter(Predicate<PlayerRef> playerMapFilter)
public
void setViewRadiusOverride(Integer viewRadiusOverride)
public
boolean shouldBeVisible(int chunkViewRadius, long chunkCoordinates)
public
boolean shouldUpdatePlayerMarkers()
public
void tick(float dt)
@Override
public
void trySendMarker(int chunkViewRadius, int playerChunkX, int playerChunkZ, MapMarker marker)
public
boolean undiscoverZone(World world, String zoneName)
public
boolean undiscoverZones(World world, Set<String> zoneNames)

Fields

Private/Package Fields (15)

privateboolean allowTeleportToCoordinates
privateboolean allowTeleportToMarkers
privateboolean clientHasWorldMapVisible
privateString currentBiomeName
privateWorldMapTracker.ZoneDiscoveryInfo currentZone
privateint lastChunkX
privateint lastChunkZ
privatePlayer player
privatePredicate<PlayerRef> playerMapFilter
privatefloat playerMarkersUpdateTimer
privateint sentViewRadius
privateboolean started
privateTransformComponent transformComponent
privatefloat updateTimer
privateInteger viewRadiusOverride

Related Classes