Ship update to OTEMod

This commit is contained in:
Tara 2023-01-08 01:50:47 -07:00
parent 9a73e1161c
commit 172c9b51ed
14 changed files with 480 additions and 30 deletions

View file

@ -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)
{