public enum PipeExtensionManager extends java.lang.Enum<PipeExtensionManager> implements IPipeExtensionManager
| Enum Constant and Description |
|---|
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
void |
registerRetractionPipe(PipeDefinition pipeDefinition)
Registers a pipe as a retraction trigger for pipe extension requests
|
boolean |
requestPipeExtension(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.util.EnumFacing dir,
IStripesActivator stripes,
net.minecraft.item.ItemStack stack)
Requests an extension by one block from a IStripesActivator (usually a stripes transport pipe) with the pipe supplied
by the stack by moving the stripes pipe to the front and placing the new transport pipe behind.
|
void |
tick(net.minecraftforge.fml.common.gameevent.TickEvent.WorldTickEvent event) |
static PipeExtensionManager |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static PipeExtensionManager[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PipeExtensionManager INSTANCE
public static PipeExtensionManager[] values()
for (PipeExtensionManager c : PipeExtensionManager.values()) System.out.println(c);
public static PipeExtensionManager valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic boolean requestPipeExtension(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.util.EnumFacing dir,
IStripesActivator stripes,
net.minecraft.item.ItemStack stack)
IPipeExtensionManagerIPipeExtensionManager.registerRetractionPipe(PipeDefinition)) it retracts the pipeline instead by moving the stripes pipe one block
in the opposite direction, replacing the previous transport pipe.requestPipeExtension in interface IPipeExtensionManagerworld - the worldpos - the position or origin of the request (usually the stripes pipe position)dir - the direction of the proposed extensionstripes - the stripes pipestack - the pipe stack to use (Note: only uses one item and sends the rest back)public void registerRetractionPipe(PipeDefinition pipeDefinition)
IPipeExtensionManagerregisterRetractionPipe in interface IPipeExtensionManagerpipeDefinition - the pipe definitionpublic void tick(net.minecraftforge.fml.common.gameevent.TickEvent.WorldTickEvent event)