1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2025-11-07 08:52:59 +00:00

Merge pull request #362 from KingofGamesYami/ComputerCraft/featurecommand-event

Command Event
This commit is contained in:
Steven Dirth
2017-11-14 23:27:11 +00:00
committed by SquidDev
parent c5d99db654
commit 9b2a50cdfc
3 changed files with 51 additions and 0 deletions

View File

@@ -39,6 +39,7 @@ public class ServerComputer extends ServerTerminal
private World m_world;
private BlockPos m_position;
private final ComputerFamily m_family;
private final Computer m_computer;
private NBTTagCompound m_userData;
private boolean m_changed;
@@ -54,6 +55,7 @@ public class ServerComputer extends ServerTerminal
m_world = world;
m_position = null;
m_family = family;
m_computer = new Computer( this, getTerminal(), computerID );
m_computer.setLabel( label );
m_userData = null;
@@ -63,6 +65,10 @@ public class ServerComputer extends ServerTerminal
m_ticksSincePing = 0;
}
public ComputerFamily getFamily(){
return m_family;
}
public World getWorld()
{
return m_world;