mirror of
https://github.com/GTNewHorizons/Binnie.git
synced 2026-11-21 20:52:22 +00:00
Remove ExtraTrees dependency from Botany
Move shared code to a new Design library mod
This commit is contained in:
1 parent
3fc36f8e37
commit
6873c36d81
125 files changed
+1151
-752
No files matched your search
@@ -0,0 +1,8 @@
|
||||
package binnie.design.api;
|
||||
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
public class DesignAPI {
|
||||
@Nullable
|
||||
public static IDesignManager manager;
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
package binnie.design.api;
|
||||
|
||||
public interface IBlockDesign {
|
||||
IDesignSystem getDesignSystem();
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
package binnie.design.api;
|
||||
|
||||
public interface IBlockDesignProperties {
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
package binnie.design.api;
|
||||
|
||||
public interface IDesign {
|
||||
String getName();
|
||||
|
||||
ILayout getTopPattern();
|
||||
|
||||
ILayout getBottomPattern();
|
||||
|
||||
ILayout getNorthPattern();
|
||||
|
||||
ILayout getEastPattern();
|
||||
|
||||
ILayout getSouthPattern();
|
||||
|
||||
ILayout getWestPattern();
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
package binnie.design.api;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface IDesignCategory {
|
||||
String getName();
|
||||
|
||||
List<IDesign> getDesigns();
|
||||
|
||||
void addDesign(final IDesign p0);
|
||||
|
||||
String getId();
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
package binnie.design.api;
|
||||
|
||||
import java.util.Collection;
|
||||
import java.util.List;
|
||||
|
||||
public interface IDesignManager {
|
||||
void registerDesignSystem(final IDesignSystem system);
|
||||
|
||||
Collection<IDesignSystem> getDesignSystems();
|
||||
|
||||
boolean registerDesign(final int index, final IDesign design);
|
||||
|
||||
int getDesignIndex(final IDesign design);
|
||||
|
||||
IDesign getDesign(final int index);
|
||||
|
||||
boolean registerDesignCategory(final IDesignCategory category);
|
||||
|
||||
Collection<IDesignCategory> getAllDesignCategories();
|
||||
|
||||
List<IDesign> getSortedDesigns();
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
package binnie.design.api;
|
||||
|
||||
import net.minecraft.item.ItemStack;
|
||||
|
||||
public interface IDesignMaterial {
|
||||
ItemStack getStack();
|
||||
|
||||
ItemStack getStack(boolean fireproof);
|
||||
|
||||
String getDesignMaterialName();
|
||||
|
||||
int getColour();
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
package binnie.design.api;
|
||||
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
import net.minecraft.client.renderer.texture.TextureAtlasSprite;
|
||||
import net.minecraft.item.ItemStack;
|
||||
|
||||
import net.minecraftforge.fml.relauncher.Side;
|
||||
import net.minecraftforge.fml.relauncher.SideOnly;
|
||||
|
||||
public interface IDesignSystem {
|
||||
@Nullable
|
||||
@SideOnly(Side.CLIENT)
|
||||
TextureAtlasSprite getPrimarySprite(final IPattern pattern);
|
||||
|
||||
@Nullable
|
||||
@SideOnly(Side.CLIENT)
|
||||
TextureAtlasSprite getSecondarySprite(final IPattern pattern);
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
void registerSprites();
|
||||
|
||||
IDesignMaterial getDefaultMaterial();
|
||||
|
||||
@Nullable
|
||||
IDesignMaterial getMaterial(final int p0);
|
||||
|
||||
int getMaterialIndex(final IDesignMaterial p0);
|
||||
|
||||
IDesignMaterial getDefaultMaterial2();
|
||||
|
||||
ItemStack getAdhesive();
|
||||
|
||||
@Nullable
|
||||
IDesignMaterial getMaterial(final ItemStack p0);
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
package binnie.design.api;
|
||||
|
||||
import net.minecraft.item.ItemStack;
|
||||
|
||||
public interface IDesignerType {
|
||||
IDesignSystem getSystem();
|
||||
ItemStack getBlock(IDesignMaterial type1, IDesignMaterial type2, IDesign design);
|
||||
String getMaterialTooltip();
|
||||
ItemStack getDisplayStack(final IDesign design);
|
||||
String getName();
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
package binnie.design.api;
|
||||
|
||||
import net.minecraft.client.renderer.texture.TextureAtlasSprite;
|
||||
|
||||
import net.minecraftforge.fml.relauncher.Side;
|
||||
import net.minecraftforge.fml.relauncher.SideOnly;
|
||||
|
||||
public interface ILayout {
|
||||
IPattern getPattern();
|
||||
|
||||
boolean isInverted();
|
||||
|
||||
ILayout rotateRight();
|
||||
|
||||
ILayout rotateLeft();
|
||||
|
||||
ILayout flipHorizontal();
|
||||
|
||||
ILayout flipVertical();
|
||||
|
||||
ILayout invert();
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
TextureAtlasSprite getPrimarySprite(IDesignSystem system);
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
TextureAtlasSprite getSecondarySprite(IDesignSystem system);
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
package binnie.design.api;
|
||||
|
||||
import net.minecraft.client.renderer.texture.TextureAtlasSprite;
|
||||
|
||||
import net.minecraftforge.fml.relauncher.Side;
|
||||
import net.minecraftforge.fml.relauncher.SideOnly;
|
||||
|
||||
import forestry.api.core.ISpriteRegister;
|
||||
|
||||
public interface IPattern extends ISpriteRegister {
|
||||
@SideOnly(Side.CLIENT)
|
||||
TextureAtlasSprite getPrimarySprite(IDesignSystem system);
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
TextureAtlasSprite getSecondarySprite(IDesignSystem system);
|
||||
|
||||
ILayout getRotation();
|
||||
|
||||
ILayout getHorizontalFlip();
|
||||
|
||||
int getIndex();
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
package binnie.design.api;
|
||||
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.ItemStack;
|
||||
|
||||
public interface IToolHammer {
|
||||
boolean isActive(final ItemStack p0);
|
||||
|
||||
void onHammerUsed(final ItemStack p0, final EntityPlayer p1);
|
||||
}
|
||||
Reference in new issue
Block a user