Search in sources :

Example 1 with PropertyETWoodType

use of binnie.extratrees.blocks.property.PropertyETWoodType in project Binnie by ForestryMC.

the class BlockETLog method create.

public static List<BlockETLog> create(boolean fireproof) {
    List<BlockETLog> blocks = new ArrayList<>();
    PropertyETWoodType[] variants = PropertyETWoodType.create("variant", VARIANTS_PER_BLOCK, true);
    for (int i = 0; i < variants.length; i++) {
        PropertyETWoodType variant = variants[i];
        BlockETLog block = new BlockETLog(fireproof, i) {

            @Override
            public PropertyWoodType<EnumETLog> getVariant() {
                return variant;
            }
        };
        blocks.add(block);
    }
    return blocks;
}
Also used : EnumETLog(binnie.extratrees.wood.EnumETLog) ArrayList(java.util.ArrayList) PropertyETWoodType(binnie.extratrees.blocks.property.PropertyETWoodType)

Example 2 with PropertyETWoodType

use of binnie.extratrees.blocks.property.PropertyETWoodType in project Binnie by ForestryMC.

the class BlockETSlab method create.

public static List<BlockETSlab> create(boolean fireproof, final boolean doubleSlab) {
    List<BlockETSlab> blocks = new ArrayList<>();
    PropertyETWoodType[] variants = PropertyETWoodType.create("variant", VARIANTS_PER_BLOCK, false);
    for (int i = 0; i < variants.length; i++) {
        PropertyETWoodType variant = variants[i];
        BlockETSlab block = new BlockETSlab(fireproof, i) {

            @Override
            public PropertyETWoodType getVariant() {
                return variant;
            }

            @Override
            public boolean isDouble() {
                return doubleSlab;
            }
        };
        blocks.add(block);
    }
    return blocks;
}
Also used : ArrayList(java.util.ArrayList) PropertyETWoodType(binnie.extratrees.blocks.property.PropertyETWoodType)

Example 3 with PropertyETWoodType

use of binnie.extratrees.blocks.property.PropertyETWoodType in project Binnie by ForestryMC.

the class BlockETFence method create.

public static List<BlockETFence> create(boolean fireproof) {
    List<BlockETFence> blocks = new ArrayList<>();
    PropertyETWoodType[] variants = PropertyETWoodType.create("variant", VARIANTS_PER_BLOCK);
    for (int i = 0; i < variants.length; i++) {
        PropertyETWoodType variant = variants[i];
        BlockETFence block = new BlockETFence(fireproof, i) {

            @Override
            public PropertyETWoodType getVariant() {
                return variant;
            }
        };
        blocks.add(block);
    }
    return blocks;
}
Also used : ArrayList(java.util.ArrayList) PropertyETWoodType(binnie.extratrees.blocks.property.PropertyETWoodType)

Example 4 with PropertyETWoodType

use of binnie.extratrees.blocks.property.PropertyETWoodType in project Binnie by ForestryMC.

the class BlockETPlank method create.

public static List<BlockETPlank> create(boolean fireproof) {
    List<BlockETPlank> blocks = new ArrayList<>();
    PropertyETWoodType[] variants = PropertyETWoodType.create("variant", VARIANTS_PER_BLOCK, false);
    for (int i = 0; i < variants.length; i++) {
        PropertyETWoodType variant = variants[i];
        BlockETPlank block = new BlockETPlank(fireproof, i) {

            @Override
            public PropertyETWoodType getVariant() {
                return variant;
            }
        };
        blocks.add(block);
    }
    return blocks;
}
Also used : ArrayList(java.util.ArrayList) PropertyETWoodType(binnie.extratrees.blocks.property.PropertyETWoodType)

Aggregations

PropertyETWoodType (binnie.extratrees.blocks.property.PropertyETWoodType)4 ArrayList (java.util.ArrayList)4 EnumETLog (binnie.extratrees.wood.EnumETLog)1