-
Notifications
You must be signed in to change notification settings - Fork 2
peripherals
Drathonix edited this page Jun 27, 2024
·
4 revisions
Load My Chunks currently has two peripherals:
Present in all Lagometer blocks, extended by the lmc_chunk_loader peripheral
| Function | Description |
|---|---|
| getChunkLastTickDuration(): Integer | Returns chunk's last time in MS tick time. |
| getChunkTickDurationLimit(): Integer | Returns the server side chunk tick time limit. |
| getChunkLastTickRatio(): Ratio | Returns getChunkLastTickDuration()/getChunkTickDurationLimit() range of [0-1]. |
| getChunkCooldownTime(): Integer | Returns the time left in a chunk's cooldown. |
| isChunkOnCooldown(): Boolean | Returns if the chunk is in cooldown. |
| isChunkForced(): Boolean | Returns if the chunk is force loaded. |
Present in all Chunkloader blocks and in turtle chunk loaders. Extends lmc_lagometer.
| Function | Description |
|---|---|
| getActive(): boolean | Returns whether the chunk loader is active. |
| setActive(boolean): void | Change's the chunk loader's activity state, may not affect the chunk's load state due to the presence of other loaders. |
| activate(): void | Activates the chunk loader. |
| deactivate(): void | Deactivates the chunk loader. |
| toggleActive(): void | Runs setActive(!getActive()) |
| getOwnerName(): String or nil | Returns the name of the chunk loader owner or nil if not present. |
| getOwnerUUID(): UUID or nil | Returns the UUID of the chunk loader owner or nil if not present. |