mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-11-11 02:43:14 +00:00
Merge pull request #364 from KingofGamesYami/feature/computer-get-label
Add .getLabel
This commit is contained in:
@@ -45,6 +45,7 @@ public class ComputerPeripheral
|
|||||||
"reboot",
|
"reboot",
|
||||||
"getID",
|
"getID",
|
||||||
"isOn",
|
"isOn",
|
||||||
|
"getLabel",
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -83,6 +84,9 @@ public class ComputerPeripheral
|
|||||||
// isOn
|
// isOn
|
||||||
return new Object[] { m_computer.isOn() };
|
return new Object[] { m_computer.isOn() };
|
||||||
}
|
}
|
||||||
|
case 5:
|
||||||
|
// getLabel
|
||||||
|
return new Object[] { m_computer.getLabel() };
|
||||||
default:
|
default:
|
||||||
{
|
{
|
||||||
return null;
|
return null;
|
||||||
|
|||||||
@@ -32,6 +32,7 @@ New Features in ComputerCraft 1.80:
|
|||||||
* Fixed a handful of bugs in ComputerCraft
|
* Fixed a handful of bugs in ComputerCraft
|
||||||
* Added speaker block, turtle upgrade, pocket upgrade, and peripheral api
|
* Added speaker block, turtle upgrade, pocket upgrade, and peripheral api
|
||||||
* Startup can now be a directory containing multiple startup files
|
* Startup can now be a directory containing multiple startup files
|
||||||
|
* Added .getLabel to the computer peripheral
|
||||||
|
|
||||||
New Features in ComputerCraft 1.79:
|
New Features in ComputerCraft 1.79:
|
||||||
|
|
||||||
|
|||||||
@@ -32,5 +32,6 @@ New Features in ComputerCraft 1.80:
|
|||||||
* Fixed a handful of bugs in ComputerCraft
|
* Fixed a handful of bugs in ComputerCraft
|
||||||
* Added speaker block, turtle upgrade, pocket upgrade, and peripheral api
|
* Added speaker block, turtle upgrade, pocket upgrade, and peripheral api
|
||||||
* Startup can now be a directory containing multiple startup files
|
* Startup can now be a directory containing multiple startup files
|
||||||
|
* Added .getLabel to the computer peripheral
|
||||||
|
|
||||||
Type "help changelog" to see the full version history.
|
Type "help changelog" to see the full version history.
|
||||||
|
|||||||
Reference in New Issue
Block a user