Package cn.nukkit.level.terra.delegate
Record Class PNXProtoWorld
java.lang.Object
java.lang.Record
cn.nukkit.level.terra.delegate.PNXProtoWorld
- All Implemented Interfaces:
com.dfsek.terra.api.Handle
,com.dfsek.terra.api.world.chunk.generation.ProtoWorld
,com.dfsek.terra.api.world.info.WorldProperties
,com.dfsek.terra.api.world.ReadableWorld
,com.dfsek.terra.api.world.World
,com.dfsek.terra.api.world.WritableWorld
public record PNXProtoWorld(ChunkManager chunkManager, com.dfsek.terra.api.world.chunk.generation.ChunkGenerator chunkGenerator, com.dfsek.terra.api.config.ConfigPack configPack, com.dfsek.terra.api.world.biome.generation.BiomeProvider biomeProvider, int centerChunkX, int centerChunkZ)
extends Record
implements com.dfsek.terra.api.world.chunk.generation.ProtoWorld
-
Constructor Summary
ConstructorsConstructorDescriptionPNXProtoWorld
(ChunkManager chunkManager, com.dfsek.terra.api.world.chunk.generation.ChunkGenerator chunkGenerator, com.dfsek.terra.api.config.ConfigPack configPack, com.dfsek.terra.api.world.biome.generation.BiomeProvider biomeProvider, int centerChunkX, int centerChunkZ) Creates an instance of aPNXProtoWorld
record class. -
Method Summary
Modifier and TypeMethodDescriptioncom.dfsek.terra.api.world.biome.generation.BiomeProvider
Returns the value of thebiomeProvider
record component.int
Returns the value of thecenterChunkX
record component.int
Returns the value of thecenterChunkZ
record component.com.dfsek.terra.api.world.chunk.generation.ChunkGenerator
Returns the value of thechunkGenerator
record component.Returns the value of thechunkManager
record component.com.dfsek.terra.api.config.ConfigPack
Returns the value of theconfigPack
record component.final boolean
Indicates whether some other object is "equal to" this one.com.dfsek.terra.api.world.biome.generation.BiomeProvider
com.dfsek.terra.api.block.entity.BlockEntity
getBlockEntity
(int i, int i1, int i2) com.dfsek.terra.api.block.state.BlockState
getBlockState
(int i, int i1, int i2) com.dfsek.terra.api.world.chunk.generation.ChunkGenerator
int
int
com.dfsek.terra.api.config.ConfigPack
getPack()
long
getSeed()
com.dfsek.terra.api.world.ServerWorld
getWorld()
final int
hashCode()
Returns a hash code value for this object.void
setBlockState
(int i, int i1, int i2, com.dfsek.terra.api.block.state.BlockState blockState, boolean b) com.dfsek.terra.api.entity.Entity
spawnEntity
(double v, double v1, double v2, com.dfsek.terra.api.entity.EntityType entityType) final String
toString()
Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.dfsek.terra.api.world.ReadableWorld
getBlockEntity, getBlockEntity, getBlockState, getBlockState
Methods inherited from interface com.dfsek.terra.api.world.WritableWorld
buffer, buffer, column, setBlockState, setBlockState, setBlockState, setBlockState, setBlockState, setBlockState, setBlockState, setBlockState, setBlockState, spawnEntity
-
Constructor Details
-
PNXProtoWorld
public PNXProtoWorld(ChunkManager chunkManager, com.dfsek.terra.api.world.chunk.generation.ChunkGenerator chunkGenerator, com.dfsek.terra.api.config.ConfigPack configPack, com.dfsek.terra.api.world.biome.generation.BiomeProvider biomeProvider, int centerChunkX, int centerChunkZ) Creates an instance of aPNXProtoWorld
record class.- Parameters:
chunkManager
- the value for thechunkManager
record componentchunkGenerator
- the value for thechunkGenerator
record componentconfigPack
- the value for theconfigPack
record componentbiomeProvider
- the value for thebiomeProvider
record componentcenterChunkX
- the value for thecenterChunkX
record componentcenterChunkZ
- the value for thecenterChunkZ
record component
-
-
Method Details
-
centerChunkX
public int centerChunkX()Returns the value of thecenterChunkX
record component.- Specified by:
centerChunkX
in interfacecom.dfsek.terra.api.world.chunk.generation.ProtoWorld
- Returns:
- the value of the
centerChunkX
record component
-
centerChunkZ
public int centerChunkZ()Returns the value of thecenterChunkZ
record component.- Specified by:
centerChunkZ
in interfacecom.dfsek.terra.api.world.chunk.generation.ProtoWorld
- Returns:
- the value of the
centerChunkZ
record component
-
getWorld
public com.dfsek.terra.api.world.ServerWorld getWorld()- Specified by:
getWorld
in interfacecom.dfsek.terra.api.world.chunk.generation.ProtoWorld
-
setBlockState
public void setBlockState(int i, int i1, int i2, com.dfsek.terra.api.block.state.BlockState blockState, boolean b) - Specified by:
setBlockState
in interfacecom.dfsek.terra.api.world.WritableWorld
-
spawnEntity
public com.dfsek.terra.api.entity.Entity spawnEntity(double v, double v1, double v2, com.dfsek.terra.api.entity.EntityType entityType) - Specified by:
spawnEntity
in interfacecom.dfsek.terra.api.world.WritableWorld
-
getBlockState
public com.dfsek.terra.api.block.state.BlockState getBlockState(int i, int i1, int i2) - Specified by:
getBlockState
in interfacecom.dfsek.terra.api.world.ReadableWorld
-
getBlockEntity
public com.dfsek.terra.api.block.entity.BlockEntity getBlockEntity(int i, int i1, int i2) - Specified by:
getBlockEntity
in interfacecom.dfsek.terra.api.world.ReadableWorld
-
getGenerator
public com.dfsek.terra.api.world.chunk.generation.ChunkGenerator getGenerator()- Specified by:
getGenerator
in interfacecom.dfsek.terra.api.world.World
-
getBiomeProvider
public com.dfsek.terra.api.world.biome.generation.BiomeProvider getBiomeProvider()- Specified by:
getBiomeProvider
in interfacecom.dfsek.terra.api.world.World
-
getPack
public com.dfsek.terra.api.config.ConfigPack getPack()- Specified by:
getPack
in interfacecom.dfsek.terra.api.world.World
-
getSeed
public long getSeed()- Specified by:
getSeed
in interfacecom.dfsek.terra.api.world.info.WorldProperties
-
getMaxHeight
public int getMaxHeight()- Specified by:
getMaxHeight
in interfacecom.dfsek.terra.api.world.info.WorldProperties
-
getMinHeight
public int getMinHeight()- Specified by:
getMinHeight
in interfacecom.dfsek.terra.api.world.info.WorldProperties
-
getHandle
- Specified by:
getHandle
in interfacecom.dfsek.terra.api.Handle
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
chunkManager
Returns the value of thechunkManager
record component.- Returns:
- the value of the
chunkManager
record component
-
chunkGenerator
public com.dfsek.terra.api.world.chunk.generation.ChunkGenerator chunkGenerator()Returns the value of thechunkGenerator
record component.- Returns:
- the value of the
chunkGenerator
record component
-
configPack
public com.dfsek.terra.api.config.ConfigPack configPack()Returns the value of theconfigPack
record component.- Returns:
- the value of the
configPack
record component
-
biomeProvider
public com.dfsek.terra.api.world.biome.generation.BiomeProvider biomeProvider()Returns the value of thebiomeProvider
record component.- Returns:
- the value of the
biomeProvider
record component
-