mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-10-22 16:17:20 +00:00
unimplement Keyed in Structure
This commit is contained in:
1 parent
1ac3964589
commit
9c5b789aa2
6 files changed
+16
-25
No files matched your search
+6
-4
@@ -10,6 +10,8 @@ package com.dfsek.terra.addons.sponge;
|
||||
import java.util.Random;
|
||||
|
||||
import com.dfsek.terra.api.block.state.BlockState;
|
||||
import com.dfsek.terra.api.registry.key.Keyed;
|
||||
import com.dfsek.terra.api.registry.key.RegistryKey;
|
||||
import com.dfsek.terra.api.structure.Structure;
|
||||
import com.dfsek.terra.api.util.Rotation;
|
||||
import com.dfsek.terra.api.util.vector.Vector2Int;
|
||||
@@ -17,13 +19,13 @@ import com.dfsek.terra.api.util.vector.Vector3Int;
|
||||
import com.dfsek.terra.api.world.WritableWorld;
|
||||
|
||||
|
||||
public class SpongeStructure implements Structure {
|
||||
public class SpongeStructure implements Structure, Keyed<SpongeStructure> {
|
||||
|
||||
private final BlockState[][][] blocks;
|
||||
|
||||
private final String id;
|
||||
private final RegistryKey id;
|
||||
|
||||
public SpongeStructure(BlockState[][][] blocks, String id) {
|
||||
public SpongeStructure(BlockState[][][] blocks, RegistryKey id) {
|
||||
this.blocks = blocks;
|
||||
this.id = id;
|
||||
}
|
||||
@@ -49,7 +51,7 @@ public class SpongeStructure implements Structure {
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getID() {
|
||||
public RegistryKey getRegistryKey() {
|
||||
return id;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user