Class GlobalTileEntityCacheManager
java.lang.Object
me.desht.pneumaticcraft.common.util.GlobalTileEntityCacheManager
Helper which allows querying BE's of specific types, like the Universal Sensor, Security Station and Charging Station
This is very important for performance, especially in worlds with many tile entities.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classGlobalTileEntityCacheManager.GlobalTileEntityCache<T extends net.minecraft.world.level.block.entity.BlockEntity> -
Field Summary
FieldsModifier and TypeFieldDescription -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic GlobalTileEntityCacheManagerstatic voidonWorldUnloaded(net.minecraftforge.event.world.WorldEvent.Unload event)
-
Field Details
-
universalSensors
public final GlobalTileEntityCacheManager.GlobalTileEntityCache<UniversalSensorBlockEntity> universalSensors -
chargingStations
public final GlobalTileEntityCacheManager.GlobalTileEntityCache<ChargingStationBlockEntity> chargingStations -
securityStations
public final GlobalTileEntityCacheManager.GlobalTileEntityCache<SecurityStationBlockEntity> securityStations -
aerialInterfaces
public final GlobalTileEntityCacheManager.GlobalTileEntityCache<AerialInterfaceBlockEntity> aerialInterfaces
-
-
Constructor Details
-
GlobalTileEntityCacheManager
public GlobalTileEntityCacheManager()
-
-
Method Details
-
getInstance
-
onWorldUnloaded
public static void onWorldUnloaded(net.minecraftforge.event.world.WorldEvent.Unload event)
-