Interface IWorld
- Namespace
- Obsidian.API
- Assembly
- Obsidian.API.dll
public interface IWorld : IAsyncDisposable
- Inherited Members
-
Properties
ChunksToGenCount
int ChunksToGenCount { get; }
Property Value
- int
DayTime
int DayTime { get; set; }
Property Value
- int
DefaultGamemode
Gamemode DefaultGamemode { get; }
Property Value
- Gamemode
DimensionName
string DimensionName { get; }
Property Value
- string
Loaded
Property Value
- bool
LoadedChunkCount
int LoadedChunkCount { get; }
Property Value
- int
Name
Property Value
- string
RegionCount
Property Value
- int
Seed
Property Value
- string
Time
Property Value
- long
Methods
DoWorldTickAsync()
Returns
- Task
FlushRegionsAsync()
Returns
- Task
GetBlockAsync(Vector)
ValueTask<IBlock?> GetBlockAsync(Vector location)
Parameters
location
Vector
Returns
- ValueTask<IBlock>
GetBlockAsync(int, int, int)
ValueTask<IBlock?> GetBlockAsync(int x, int y, int z)
Parameters
x
int
y
int
z
int
Returns
- ValueTask<IBlock>
GetNewEntitySpawner()
IEntitySpawner GetNewEntitySpawner()
Returns
- IEntitySpawner
GetWorldSurfaceHeightAsync(int, int)
ValueTask<int?> GetWorldSurfaceHeightAsync(int x, int z)
Parameters
x
int
z
int
Returns
- ValueTask<int?>
SetBlockAsync(Vector, IBlock)
ValueTask SetBlockAsync(Vector location, IBlock block)
Parameters
location
Vector
block
IBlock
Returns
- ValueTask
SetBlockAsync(int, int, int, IBlock)
ValueTask SetBlockAsync(int x, int y, int z, IBlock block)
Parameters
x
int
y
int
z
int
block
IBlock
Returns
- ValueTask
SetBlockUntrackedAsync(Vector, IBlock, bool)
ValueTask SetBlockUntrackedAsync(Vector location, IBlock block, bool doBlockUpdate)
Parameters
location
Vector
block
IBlock
doBlockUpdate
bool
Returns
- ValueTask
SetBlockUntrackedAsync(int, int, int, IBlock, bool)
ValueTask SetBlockUntrackedAsync(int x, int y, int z, IBlock block, bool doBlockUpdate)
Parameters
x
int
y
int
z
int
block
IBlock
doBlockUpdate
bool
Returns
- ValueTask
SpawnEntity(VectorF, EntityType)
IEntity SpawnEntity(VectorF position, EntityType type)
Parameters
position
VectorF
type
EntityType
Returns
- IEntity
SpawnExperienceOrbs(VectorF, short)
void SpawnExperienceOrbs(VectorF position, short count)
Parameters
position
VectorF
count
short