Record Class PNXServerWorld

java.lang.Object
java.lang.Record
cn.nukkit.level.terra.delegate.PNXServerWorld
All Implemented Interfaces:
com.dfsek.terra.api.Handle, com.dfsek.terra.api.world.info.WorldProperties, com.dfsek.terra.api.world.ReadableWorld, com.dfsek.terra.api.world.ServerWorld, com.dfsek.terra.api.world.World, com.dfsek.terra.api.world.WritableWorld

public record PNXServerWorld(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) extends Record implements com.dfsek.terra.api.world.ServerWorld
  • Constructor Summary

    Constructors
    Constructor
    Description
    PNXServerWorld(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)
    Creates an instance of a PNXServerWorld record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    com.dfsek.terra.api.world.biome.generation.BiomeProvider
    Returns the value of the biomeProvider record component.
    com.dfsek.terra.api.world.chunk.generation.ChunkGenerator
    Returns the value of the chunkGenerator record component.
    Returns the value of the chunkManager record component.
    com.dfsek.terra.api.config.ConfigPack
    Returns the value of the configPack 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.Chunk
    getChunkAt(int i, int i1)
     
    com.dfsek.terra.api.world.chunk.generation.ChunkGenerator
     
     
    int
     
    int
     
    com.dfsek.terra.api.config.ConfigPack
     
    long
     
    final int
    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
    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.ServerWorld

    getChunkAt

    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

    • PNXServerWorld

      public PNXServerWorld(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)
      Creates an instance of a PNXServerWorld record class.
      Parameters:
      chunkManager - the value for the chunkManager record component
      chunkGenerator - the value for the chunkGenerator record component
      configPack - the value for the configPack record component
      biomeProvider - the value for the biomeProvider record component
  • Method Details

    • setBlockState

      public void setBlockState(int i, int i1, int i2, com.dfsek.terra.api.block.state.BlockState blockState, boolean b)
      Specified by:
      setBlockState in interface com.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 interface com.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 interface com.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 interface com.dfsek.terra.api.world.ReadableWorld
    • getGenerator

      public com.dfsek.terra.api.world.chunk.generation.ChunkGenerator getGenerator()
      Specified by:
      getGenerator in interface com.dfsek.terra.api.world.World
    • getBiomeProvider

      public com.dfsek.terra.api.world.biome.generation.BiomeProvider getBiomeProvider()
      Specified by:
      getBiomeProvider in interface com.dfsek.terra.api.world.World
    • getPack

      public com.dfsek.terra.api.config.ConfigPack getPack()
      Specified by:
      getPack in interface com.dfsek.terra.api.world.World
    • getSeed

      public long getSeed()
      Specified by:
      getSeed in interface com.dfsek.terra.api.world.info.WorldProperties
    • getMaxHeight

      public int getMaxHeight()
      Specified by:
      getMaxHeight in interface com.dfsek.terra.api.world.info.WorldProperties
    • getMinHeight

      public int getMinHeight()
      Specified by:
      getMinHeight in interface com.dfsek.terra.api.world.info.WorldProperties
    • getHandle

      public ChunkManager getHandle()
      Specified by:
      getHandle in interface com.dfsek.terra.api.Handle
    • getChunkAt

      public com.dfsek.terra.api.world.chunk.Chunk getChunkAt(int i, int i1)
      Specified by:
      getChunkAt in interface com.dfsek.terra.api.world.ServerWorld
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • chunkManager

      public ChunkManager chunkManager()
      Returns the value of the chunkManager 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 the chunkGenerator record component.
      Returns:
      the value of the chunkGenerator record component
    • configPack

      public com.dfsek.terra.api.config.ConfigPack configPack()
      Returns the value of the configPack 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 the biomeProvider record component.
      Returns:
      the value of the biomeProvider record component