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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user