public static interface PneumaticRegistry.IPneumaticCraftInterface
PneumaticRegistry.getInstance()| Modifier and Type | Method and Description |
|---|---|
net.minecraftforge.items.IItemHandler |
deserializeSmartChest(net.minecraft.nbt.CompoundNBT tag)
Return a Smart Chest item handler properly deserialized from the supplied NBT.
|
void |
forceClientShapeRecalculation(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos)
Notify tracking clients to recalculate the block shapes of all neighbours of the block at the given world
and position.
|
IAirHandlerMachineFactory |
getAirHandlerMachineFactory() |
IDroneRegistry |
getDroneRegistry() |
IFuelRegistry |
getFuelRegistry() |
IClientRegistry |
getGuiRegistry() |
IHeatRegistry |
getHeatRegistry() |
IPneumaticHelmetRegistry |
getHelmetRegistry() |
IItemRegistry |
getItemRegistry() |
int |
getProtectingSecurityStations(net.minecraft.entity.player.PlayerEntity player,
net.minecraft.util.math.BlockPos pos)
Returns the number of Security Stations that disallow interaction with the given coordinate for the given
player.
|
int |
getProtectingSecurityStations(net.minecraft.entity.player.PlayerEntity player,
net.minecraft.util.math.BlockPos pos,
boolean showRangeLines)
Deprecated.
|
IPneumaticRecipeRegistry |
getRecipeRegistry() |
ISensorRegistry |
getSensorRegistry() |
IWrenchRegistry |
getWrenchRegistry() |
void |
registerPlayerMatcher(net.minecraft.util.ResourceLocation id,
IPlayerMatcher.MatcherFactory<?> factory)
Register a custom player matcher object.
|
void |
registerXPFluid(FluidIngredient fluid,
int liquidToPointRatio)
Register a fluid ingredient that represents liquid XP.
|
void |
registerXPFluid(net.minecraft.fluid.Fluid fluid,
int liquidToPointRatio)
Deprecated.
|
net.minecraft.util.ResourceLocation |
RL(java.lang.String path)
Deprecated.
|
void |
syncGlobalVariable(net.minecraft.entity.player.ServerPlayerEntity player,
java.lang.String varName)
Sync a global variable from server to client for the given player.
|
IPneumaticRecipeRegistry getRecipeRegistry()
IAirHandlerMachineFactory getAirHandlerMachineFactory()
IPneumaticHelmetRegistry getHelmetRegistry()
IDroneRegistry getDroneRegistry()
IHeatRegistry getHeatRegistry()
IClientRegistry getGuiRegistry()
ISensorRegistry getSensorRegistry()
IItemRegistry getItemRegistry()
IFuelRegistry getFuelRegistry()
IWrenchRegistry getWrenchRegistry()
@Deprecated
int getProtectingSecurityStations(net.minecraft.entity.player.PlayerEntity player,
net.minecraft.util.math.BlockPos pos,
boolean showRangeLines)
getProtectingSecurityStations(PlayerEntity, BlockPos)player - the player who is trying to access the blockpos - blockpos of the block being testedshowRangeLines - this is ignored and will disappear in a future releasejava.lang.IllegalArgumentException - when called from the client sideint getProtectingSecurityStations(net.minecraft.entity.player.PlayerEntity player,
net.minecraft.util.math.BlockPos pos)
player - the player who is trying to access the blockpos - blockpos of the block being testedjava.lang.IllegalArgumentException - when called from the client side@Deprecated
void registerXPFluid(net.minecraft.fluid.Fluid fluid,
int liquidToPointRatio)
registerXPFluid(FluidIngredient, int)registerXPFluid(FluidIngredient, int).fluid - the fluid to registerliquidToPointRatio - the amount of fluid (in mB) for one XP point; use a value of 0 or less to
unregister this fluidvoid registerXPFluid(FluidIngredient fluid, int liquidToPointRatio)
fluid - the fluid tag to register; all fluids in this tag will have the given XP valueliquidToPointRatio - 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@Deprecated net.minecraft.util.ResourceLocation RL(java.lang.String path)
PneumaticRegistry.RL(String)path - a pathvoid syncGlobalVariable(net.minecraft.entity.player.ServerPlayerEntity player,
java.lang.String varName)
IPositionProvider.syncVariables(ServerPlayerEntity, ItemStack)player - the player to sync tovarName - the global variable name (with or without the leading '#')void registerPlayerMatcher(net.minecraft.util.ResourceLocation id,
IPlayerMatcher.MatcherFactory<?> factory)
FMLCommonSetupEvent handler. Note that matchers should be
able to run on both client and server.id - matcher ID, can be used as a key in recipe JSON'sfactory - a factory object used to create instances of this matcher from JSON or a packet buffernet.minecraftforge.items.IItemHandler deserializeSmartChest(net.minecraft.nbt.CompoundNBT tag)
tag - NBT to be deserialized, previously serialized from a Smart Chestvoid forceClientShapeRecalculation(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos)
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.
world - the worldpos - the position of the block that has been changed or removed