Package me.desht.pneumaticcraft.common.util
package me.desht.pneumaticcraft.common.util
-
ClassDescriptionLike a Region, but should be OK to use get a cache from a different thread (since we go through ServerChunkProvider#getChunk(), which returns async chunk supplier when called off the main thread.rotateAround() disappeared from Direction in 1.15Class to build simple (no jumping) Drone programs, without needing to worry about the X/Y locations of widgetsTo keep crafting widgets happyHelper 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 block entities.GlobalBlockEntityCacheManager.GlobalTileEntityCache<T extends net.minecraft.world.level.block.entity.BlockEntity>Common code for the Air Cannon and Pneumatic Chestplate item launcherExists to support saved drone programs from 1.12 and older versions of PneumaticCraft, and also to support the Computer Control progwidget's "addArea" and "removeArea" methods.A player filter is a collection of individual matcher objects with either match-any or match-all behaviour.Much like the default FluidTank implementation in Forge, but also passes the previous fluid & amount in its onContentsChanged() method.Gather all the reflection work we need to do here for ease of reference.An item handler wrapper which pretends to be smaller than its wrapped item handler; only as large as its last non-empty slot.Some helper methods to manage items which can store upgrades (Pneumatic Armor, Drones...)With thanks to JTK222 | Lukas for this