Moved IPagedVariants for API independence

This commit is contained in:
Adubbz 2016-11-17 21:21:51 +11:00
parent 44e2f5ef7c
commit 6756e4b388
7 changed files with 8 additions and 11 deletions

View file

@ -8,7 +8,6 @@
package biomesoplenty.api.enums; package biomesoplenty.api.enums;
import biomesoplenty.common.util.block.VariantPagingHelper.IPagedVariants;
import net.minecraft.util.IStringSerializable; import net.minecraft.util.IStringSerializable;
public enum BOPFlowers implements IStringSerializable, IPagedVariants public enum BOPFlowers implements IStringSerializable, IPagedVariants

View file

@ -8,7 +8,6 @@
package biomesoplenty.api.enums; package biomesoplenty.api.enums;
import biomesoplenty.common.util.block.VariantPagingHelper.IPagedVariants;
import net.minecraft.util.IStringSerializable; import net.minecraft.util.IStringSerializable;
public enum BOPPlants implements IStringSerializable, IPagedVariants public enum BOPPlants implements IStringSerializable, IPagedVariants

View file

@ -10,7 +10,6 @@ package biomesoplenty.api.enums;
import com.google.common.base.Predicate; import com.google.common.base.Predicate;
import biomesoplenty.common.util.block.VariantPagingHelper.IPagedVariants;
import net.minecraft.util.IStringSerializable; import net.minecraft.util.IStringSerializable;
public enum BOPTrees implements IStringSerializable, IPagedVariants public enum BOPTrees implements IStringSerializable, IPagedVariants

View file

@ -10,7 +10,6 @@ package biomesoplenty.api.enums;
import com.google.common.base.Predicate; import com.google.common.base.Predicate;
import biomesoplenty.common.util.block.VariantPagingHelper.IPagedVariants;
import net.minecraft.util.IStringSerializable; import net.minecraft.util.IStringSerializable;
public enum BOPWoods implements IStringSerializable, IPagedVariants public enum BOPWoods implements IStringSerializable, IPagedVariants

View file

@ -0,0 +1,5 @@
package biomesoplenty.api.enums;
public interface IPagedVariants {
}

View file

@ -12,7 +12,7 @@ import java.util.Random;
import biomesoplenty.api.block.BOPBlocks; import biomesoplenty.api.block.BOPBlocks;
import biomesoplenty.common.item.ItemBOPBlock; import biomesoplenty.common.item.ItemBOPBlock;
import biomesoplenty.common.util.block.VariantPagingHelper.IPagedVariants; import biomesoplenty.api.enums.IPagedVariants;
import net.minecraft.block.Block; import net.minecraft.block.Block;
import net.minecraft.block.SoundType; import net.minecraft.block.SoundType;
import net.minecraft.block.material.Material; import net.minecraft.block.material.Material;

View file

@ -12,6 +12,7 @@ import java.util.ArrayList;
import java.util.HashMap; import java.util.HashMap;
import java.util.Map; import java.util.Map;
import biomesoplenty.api.enums.IPagedVariants;
import com.google.common.base.Predicate; import com.google.common.base.Predicate;
import com.google.common.base.Predicates; import com.google.common.base.Predicates;
@ -22,14 +23,9 @@ import net.minecraft.item.ItemStack;
import net.minecraft.util.IStringSerializable; import net.minecraft.util.IStringSerializable;
public class VariantPagingHelper<B extends Block, V extends Enum<V> & IStringSerializable & VariantPagingHelper.IPagedVariants> public class VariantPagingHelper<B extends Block, V extends Enum<V> & IStringSerializable & IPagedVariants>
{ {
public interface IPagedVariants
{
}
public class PageIndex public class PageIndex
{ {
private int pageNum; private int pageNum;