You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Instead of getting a table with a small amount of data when calling EnvironmentDetectorPeripheral.scanEntities(), UUIDs for entities are now the only thing that is returned. These can be used with the new entity API. For example, entity.getNBT(uuid) returns the NBT data of the entity with the given UUID.
The entity API itself can be disabled in config, as well as the individual functions within it that could be exploitative on servers.
A PlayerDetectorPeripheral.getPlayerUUID(username) function has also been added so that you can make use of the entity API when using a PlayerDetectorPeripheral.
Copy file name to clipboardExpand all lines: src/main/java/de/srendi/advancedperipherals/common/addons/computercraft/peripheral/EnvironmentDetectorPeripheral.java
Copy file name to clipboardExpand all lines: src/main/java/de/srendi/advancedperipherals/common/addons/computercraft/peripheral/PlayerDetectorPeripheral.java
+17-2
Original file line number
Diff line number
Diff line change
@@ -194,8 +194,8 @@ public final boolean isPlayerInRange(int range, String username) {
Copy file name to clipboardExpand all lines: src/main/java/de/srendi/advancedperipherals/common/addons/computercraft/peripheral/plugins/AutomataEntityHandPlugin.java
Copy file name to clipboardExpand all lines: src/main/java/de/srendi/advancedperipherals/common/addons/computercraft/peripheral/plugins/AutomataEntityTransferPlugin.java
0 commit comments