Package | Description |
---|---|
net.tridentsdk.server.chunk |
Contains infrastructure for player and world chunk management
|
net.tridentsdk.server.data |
Metadata and abstract writable implementations designed to serialize data for the protocol
|
net.tridentsdk.server.packets.play.out |
Packets related to the gameplay of the server sent from the server
|
net.tridentsdk.server.world |
Implements classes in the package
net.tridentsdk.world .* package |
net.tridentsdk.server.world.gen |
Contains world generators that create the default world terrain
|
net.tridentsdk.server.world.gen.brush |
Classes that generate the world with extra features such as trees
|
net.tridentsdk.world |
World access: Chunks, dimensions, and loading, and world generation
|
net.tridentsdk.world.gen |
World generation API, used to set block positions for the chunk
|
Modifier and Type | Method and Description |
---|---|
Set<ChunkLocation> |
ChunkHandler.keys()
Obtains the set of chunk locations that have already been loaded
|
Set<ChunkLocation> |
ChunkLocationSet.locations()
Obtains the chunks that are held in this location set
|
Modifier and Type | Method and Description |
---|---|
boolean |
ChunkHandler.apply(ChunkLocation location,
java.util.function.Consumer<CRefCounter> consumer)
Obtains the chunk reference counter and applies a transformation function
|
CRefCounter |
ChunkHandler.get(ChunkLocation location)
Obtains the chunk reference counter at the specified location
|
TridentChunk |
ChunkHandler.get(ChunkLocation location,
boolean gen)
Obtains the chunk at the given location in the world, generating if given to do so
|
void |
ChunkHandler.remove(ChunkLocation location)
Manually removes the chunk from the collection without running any cleanup code
|
boolean |
ChunkHandler.tryRemove(ChunkLocation location)
Attempts to remove the chunk from memory and save it
|
Modifier and Type | Method and Description |
---|---|
ChunkLocation |
ChunkMetaBuilder.location()
Gets the chunk location
|
Modifier and Type | Method and Description |
---|---|
ChunkMetaBuilder |
ChunkMetaBuilder.location(ChunkLocation location)
Sets the chunk meta location
|
Modifier and Type | Field and Description |
---|---|
protected ChunkLocation |
PacketPlayOutMultiBlockChange.chunkLocation |
protected ChunkLocation |
PacketPlayOutChunkData.chunkLocation |
Modifier and Type | Method and Description |
---|---|
ChunkLocation |
PacketPlayOutMultiBlockChange.chunkLocation() |
ChunkLocation |
PacketPlayOutChunkData.chunkLocation() |
Constructor and Description |
---|
PacketPlayOutChunkData(byte[] data,
ChunkLocation chunkLocation,
boolean continuous,
short bitmask) |
Modifier and Type | Method and Description |
---|---|
static ChunkLocation |
WorldUtils.chunkLocation(int x,
int z)
Gets the chunk location from a position X and Y
|
ChunkLocation |
TridentChunkSnapshot.location() |
ChunkLocation |
TridentChunk.location() |
Modifier and Type | Method and Description |
---|---|
protected void |
TridentWorld.addChunkAt(ChunkLocation location,
Chunk chunk) |
TridentChunk |
TridentWorld.chunkAt(ChunkLocation location,
boolean generateIfNotFound) |
boolean |
TridentWorldLoader.chunkExists(ChunkLocation location) |
CompoundTag |
RegionFile.decode(ChunkLocation location) |
static RegionFile |
RegionFile.fromPath(String name,
ChunkLocation location) |
TridentChunk |
TridentWorld.generateChunk(ChunkLocation location) |
TridentChunk |
TridentWorldLoader.loadChunk(ChunkLocation location) |
TridentChunk |
RegionFile.loadChunkData(TridentWorld world,
ChunkLocation location) |
static String |
WorldUtils.regionFile(ChunkLocation location)
Gets the name of a region file for a given chunklocation
|
Constructor and Description |
---|
TridentChunk(TridentWorld world,
ChunkLocation coord) |
Modifier and Type | Method and Description |
---|---|
char[][] |
FlatWorldGen.generateBlocks(ChunkLocation location,
AtomicReferenceArray<Integer> heights) |
char[][] |
DefaultWorldGen.generateBlocks(ChunkLocation location,
AtomicReferenceArray<Integer> heights) |
byte[][] |
FlatWorldGen.generateData(ChunkLocation location) |
byte[][] |
DefaultWorldGen.generateData(ChunkLocation location) |
Modifier and Type | Method and Description |
---|---|
void |
TallGrassBrush.generate(ChunkLocation location,
int relX,
int relZ,
GeneratorRandom random,
AtomicReferenceArray<Integer> heights,
FeatureGenerator.ChunkManipulator manipulator) |
void |
OakTreeBrush.generate(ChunkLocation location,
int relX,
int relZ,
GeneratorRandom random,
AtomicReferenceArray<Integer> heights,
FeatureGenerator.ChunkManipulator manipulator) |
Modifier and Type | Method and Description |
---|---|
static ChunkLocation |
ChunkLocation.create(int x,
int z)
Produces a new chunk coordinate using the two positions specified
|
ChunkLocation |
Chunk.location()
The location of the chunk
|
Modifier and Type | Method and Description |
---|---|
Chunk |
World.chunkAt(ChunkLocation loc,
boolean generateIfNotFound)
Gets the chunk on the given position, and generates the chunk if it does not exist.
|
boolean |
WorldLoader.chunkExists(ChunkLocation position)
Checks the existence of a chunk in a world, based on the world directory
|
Chunk |
World.generateChunk(ChunkLocation position)
Generates the chunk on the given position
|
Chunk |
WorldLoader.loadChunk(ChunkLocation position)
Loads the chunk into the world
|
Modifier and Type | Method and Description |
---|---|
Iterator<ChunkLocation> |
ChunkAxisAlignedBoundingBox.iterator() |
Modifier and Type | Method and Description |
---|---|
abstract void |
FeatureGenerator.generate(ChunkLocation location,
int relX,
int relZ,
GeneratorRandom random,
AtomicReferenceArray<Integer> heights,
FeatureGenerator.ChunkManipulator manipulator)
Brushes the terrain
|
abstract char[][] |
ChunkGenerator.generateBlocks(ChunkLocation position,
AtomicReferenceArray<Integer> heights)
Populates the block ids for a chunk
|
abstract byte[][] |
ChunkGenerator.generateData(ChunkLocation position)
Populates block data for a chunk
|
Constructor and Description |
---|
ChunkAxisAlignedBoundingBox(ChunkLocation position1,
ChunkLocation position2)
Creates a new Chunk bounding box
|
Copyright © 2016. All rights reserved.