public interface IPipeRegistry
Modifier and Type | Method and Description |
---|---|
IItemPipe |
createItemForPipe(PipeDefinition definition)
Creates an
IItemPipe for the given PipeDefinition . |
IItemPipe |
createUnnamedItemForPipe(PipeDefinition definition,
java.util.function.Consumer<net.minecraft.item.Item> postCreate)
Identical to
createItemForPipe(PipeDefinition) , but doesn't require registering tags with buildcraft
lib in order to register. |
java.lang.Iterable<PipeDefinition> |
getAllRegisteredPipes() |
PipeDefinition |
getDefinition(net.minecraft.util.ResourceLocation identifier) |
IItemPipe |
getItemForPipe(PipeDefinition definition) |
void |
registerPipe(PipeDefinition definition) |
void |
setItemForPipe(PipeDefinition definition,
IItemPipe item)
Maps the given
PipeDefinition to an IItemPipe . |
PipeDefinition getDefinition(net.minecraft.util.ResourceLocation identifier)
void registerPipe(PipeDefinition definition)
void setItemForPipe(PipeDefinition definition, @Nullable IItemPipe item)
IItemPipe getItemForPipe(PipeDefinition definition)
IItemPipe createItemForPipe(PipeDefinition definition)
IItemPipe
for the given PipeDefinition
. If the PipeDefinition
has been
registered with registerPipe(PipeDefinition)
then it will also be registered with
setItemForPipe(PipeDefinition, IItemPipe)
. The returned item will be automatically registered with
forge.IItemPipe createUnnamedItemForPipe(PipeDefinition definition, java.util.function.Consumer<net.minecraft.item.Item> postCreate)
createItemForPipe(PipeDefinition)
, but doesn't require registering tags with buildcraft
lib in order to register.postCreate
- A function to call in order to setup the IForgeRegistryEntry.Impl.setRegistryName(ResourceLocation)
and
Item.setUnlocalizedName(String)
.java.lang.Iterable<PipeDefinition> getAllRegisteredPipes()