Added missing custom preInit/init/postInit functionality to the IItemBuilder.
This commit is contained in:
@@ -1,11 +1,13 @@
|
||||
package appeng.bootstrap;
|
||||
|
||||
|
||||
import java.util.function.Consumer;
|
||||
|
||||
import net.minecraft.creativetab.CreativeTabs;
|
||||
import net.minecraft.item.Item;
|
||||
|
||||
import appeng.core.features.AEFeature;
|
||||
import appeng.core.features.ItemDefinition;
|
||||
import appeng.util.Platform;
|
||||
|
||||
|
||||
/**
|
||||
@@ -15,6 +17,12 @@ import appeng.util.Platform;
|
||||
public interface IItemBuilder
|
||||
{
|
||||
|
||||
IItemBuilder preInit( Consumer<Item> callback );
|
||||
|
||||
IItemBuilder init( Consumer<Item> callback );
|
||||
|
||||
IItemBuilder postInit( Consumer<Item> callback );
|
||||
|
||||
IItemBuilder features( AEFeature... features );
|
||||
|
||||
IItemBuilder addFeatures( AEFeature... features );
|
||||
@@ -24,5 +32,4 @@ public interface IItemBuilder
|
||||
IItemBuilder rendering( ItemRenderingCustomizer callback );
|
||||
|
||||
ItemDefinition build();
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user