mirror of
https://github.com/GTNewHorizons/Binnie.git
synced 2026-11-24 22:14:44 +00:00
Add et wood doors
This commit is contained in:
1 parent
6ec7808b25
commit
81f632168b
10 files changed
+276
-433
No files matched your search
@@ -9,6 +9,7 @@ import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import net.minecraft.init.Blocks;
|
||||
import net.minecraft.init.Items;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
|
||||
@@ -104,6 +105,23 @@ public class WoodManager {
|
||||
}
|
||||
return TreeManager.woodAccess.getStack(plank.getWoodType(), WoodBlockKind.FENCE_GATE, false);
|
||||
}
|
||||
|
||||
public static ItemStack getDoor(final IPlankType plank) {
|
||||
if (plank == PlankType.VanillaPlanks.OAK) {
|
||||
return new ItemStack(Items.OAK_DOOR);
|
||||
}else if (plank == PlankType.VanillaPlanks.BIRCH) {
|
||||
return new ItemStack(Items.BIRCH_DOOR);
|
||||
}else if (plank == PlankType.VanillaPlanks.SPRUCE) {
|
||||
return new ItemStack(Items.SPRUCE_DOOR);
|
||||
} else if (plank == PlankType.VanillaPlanks.BIG_OAK) {
|
||||
return new ItemStack(Items.DARK_OAK_DOOR);
|
||||
} else if (plank == PlankType.VanillaPlanks.JUNGLE) {
|
||||
return new ItemStack(Items.JUNGLE_DOOR);
|
||||
} else if (plank == PlankType.VanillaPlanks.ACACIA) {
|
||||
return new ItemStack(Items.ACACIA_DOOR);
|
||||
}
|
||||
return TreeManager.woodAccess.getStack(plank.getWoodType(), WoodBlockKind.DOOR, false);
|
||||
}
|
||||
|
||||
public static ItemStack getFence(final IPlankType plank, final FenceType type, final int amount) {
|
||||
return getFence(plank, plank, type, amount);
|
||||
@@ -124,10 +142,6 @@ public class WoodManager {
|
||||
return stack;
|
||||
}
|
||||
|
||||
public static ItemStack getDoor(final IPlankType plank, final DoorType type) {
|
||||
return TileEntityMetadata.getItemStack(ExtraTrees.blocks().blockDoor, type.ordinal() * 256 + getPlankTypeIndex(plank));
|
||||
}
|
||||
|
||||
public static List<IPlankType> getAllPlankTypes() {
|
||||
List<IPlankType> list = new ArrayList<>();
|
||||
Collections.addAll(list, PlankType.ExtraTreePlanks.values());
|
||||
|
||||
Reference in new issue
Block a user