Interface PneumaticRegistry.IPneumaticCraftInterface

All Known Implementing Classes:
PneumaticCraftAPIHandler
Enclosing class:
PneumaticRegistry

public static interface PneumaticRegistry.IPneumaticCraftInterface
Provides top-level access to the various registries and helpers in the API. Retrieve an instance of this via PneumaticRegistry.getInstance()
  • Method Details

    • getRecipeRegistry

      IPneumaticRecipeRegistry getRecipeRegistry()
    • getAirHandlerMachineFactory

      IAirHandlerMachineFactory getAirHandlerMachineFactory()
    • getHelmetRegistry

      IPneumaticHelmetRegistry getHelmetRegistry()
    • getCommonArmorRegistry

      ICommonArmorRegistry getCommonArmorRegistry()
    • getDroneRegistry

      IDroneRegistry getDroneRegistry()
    • getHeatRegistry

      IHeatRegistry getHeatRegistry()
    • getClientRegistry

      IClientRegistry getClientRegistry()
    • getSensorRegistry

      ISensorRegistry getSensorRegistry()
    • getItemRegistry

      IItemRegistry getItemRegistry()
    • getUpgradeRegistry

      IUpgradeRegistry getUpgradeRegistry()
    • getFuelRegistry

      IFuelRegistry getFuelRegistry()
    • getWrenchRegistry

      IWrenchRegistry getWrenchRegistry()
    • getMiscHelpers

      IMiscHelpers getMiscHelpers()
    • getProtectingSecurityStations

      @Deprecated(forRemoval=true) int getProtectingSecurityStations(net.minecraft.world.entity.player.Player player, net.minecraft.core.BlockPos pos)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns the number of Security Stations that disallow interaction with the given coordinate for the given player. Usually you'd disallow interaction when this returns > 0.
      Parameters:
      player - the player who is trying to access the block
      pos - blockpos of the block being tested
      Returns:
      the number of Security Stations that disallow interaction for the given player.
      Throws:
      IllegalArgumentException - when called from the client side
    • registerXPFluid

      @Deprecated(forRemoval=true) void registerXPFluid(FluidIngredient fluid, int liquidToPointRatio)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Register a fluid ingredient that represents liquid XP. This ingredient could be a fluid, or a fluid tag, or even a stream of fluid ingredients. Note that a fluid ingredient of the "forge:experience" fluid tag is registered by default with a ratio of 20mb per XP; this tag includes PneumaticCraft Memory Essence, and possibly other modded XP fluids too.
      Parameters:
      fluid - the fluid tag to register; all fluids in this tag will have the given XP value
      liquidToPointRatio - the amount of fluid (in mB) for one XP point; use a value of 0 or less to unregister all fluids matching this fluid ingredient
    • syncGlobalVariable

      @Deprecated(forRemoval=true) void syncGlobalVariable(net.minecraft.server.level.ServerPlayer player, String varName)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Sync a global variable from server to client for the given player. Primarily intended for use by IPositionProvider.syncVariables(ServerPlayer, ItemStack)
      Parameters:
      player - the player to sync to
      varName - the global variable name (with or without the leading '#')
    • registerPlayerMatcher

      @Deprecated(forRemoval=true) void registerPlayerMatcher(net.minecraft.resources.ResourceLocation id, IPlayerMatcher.MatcherFactory<?> factory)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Register a custom player matcher object. This is safe to call from a FMLCommonSetupEvent handler. Note that matchers should be able to run on both client and server.
      Parameters:
      id - matcher ID, can be used as a key in recipe JSON's
      factory - a factory object used to create instances of this matcher from JSON or a packet buffer
    • deserializeSmartChest

      @Deprecated(forRemoval=true) net.minecraftforge.items.IItemHandler deserializeSmartChest(net.minecraft.nbt.CompoundTag tag)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Return a Smart Chest item handler properly deserialized from the supplied NBT. Not for general use; here to help with Create compatibility, using Smart Chests as part of Create contraptions.
      Parameters:
      tag - NBT to be deserialized, previously serialized from a Smart Chest
      Returns:
      an item handler deserialized by the Smart Chest
    • forceClientShapeRecalculation

      @Deprecated(forRemoval=true) void forceClientShapeRecalculation(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Notify tracking clients to recalculate the block shapes of all neighbours of the block at the given world and position. You should call this for any blocks which can connect pneumatically to neighbours when those blocks are changed server-side only (e.g. rotated, sneak-wrenched). This should only be called server-side (it is no-op if called on the client).

      This is a bit of a kludge, but necessary since blocks do not normally get signalled about neighbour changes on the client, which is needed for blocks such as Pressure Tubes to recalculate their cached block shapes.

      Parameters:
      world - the world
      pos - the position of the block that has been changed or removed