Class CoordinateCache.CoordinateKey
java.lang.Object
com.hypixel.hytale.server.worldgen.cache.CoordinateCache.CoordinateKey
- All Implemented Interfaces:
Function<CoordinateCache.CoordinateKey,CoordinateCache.CoordinateKey>
- Enclosing class:
CoordinateCache<T>
public static class CoordinateCache.CoordinateKey
extends Object
implements Function<CoordinateCache.CoordinateKey,CoordinateCache.CoordinateKey>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapply(CoordinateCache.CoordinateKey cachedKey) longcoord()booleaninthashCode()intseed()setLocation(int seed, int x, int y)
-
Field Details
-
seed
private int seed -
coord
private long coord -
hash
private int hash
-
-
Constructor Details
-
CoordinateKey
public CoordinateKey() -
CoordinateKey
public CoordinateKey(int seed, int x, int y)
-
-
Method Details
-
seed
public int seed() -
coord
public long coord() -
setLocation
-
apply
@Nonnull public CoordinateCache.CoordinateKey apply(@Nonnull CoordinateCache.CoordinateKey cachedKey) - Specified by:
applyin interfaceFunction<CoordinateCache.CoordinateKey,CoordinateCache.CoordinateKey>
-
hashCode
public int hashCode() -
equals
-