Moved IPagedVariants for API independence
This commit is contained in:
parent
44e2f5ef7c
commit
6756e4b388
7 changed files with 8 additions and 11 deletions
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
package biomesoplenty.api.enums;
|
||||||
|
|
||||||
|
public interface IPagedVariants {
|
||||||
|
|
||||||
|
}
|
|
@ -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;
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue