Ship update to OTEMod
This commit is contained in:
parent
9a73e1161c
commit
172c9b51ed
14 changed files with 480 additions and 30 deletions
|
@ -24,6 +24,17 @@ public class StoredBlock
|
|||
private int tries;
|
||||
|
||||
|
||||
public void setPosition(Vector3 pos)
|
||||
{
|
||||
position.Position=pos;
|
||||
}
|
||||
|
||||
public void updateWorld(ServerLevel lv)
|
||||
{
|
||||
position = new WorldPosition(position.Position, lv);
|
||||
}
|
||||
|
||||
|
||||
public void tick(){
|
||||
this.tick--;
|
||||
}
|
||||
|
@ -37,6 +48,11 @@ public class StoredBlock
|
|||
return tick <= 0;
|
||||
}
|
||||
|
||||
public void replaceBlockState(BlockState state)
|
||||
{
|
||||
this.state=state;
|
||||
}
|
||||
|
||||
|
||||
public StoredBlock(final BlockPos pos, final BlockState toSave, final ServerLevel lvl)
|
||||
{
|
||||
|
|
Reference in a new issue