Move mail blocks to PluginMail.blocks

This commit is contained in:
mezz committed 2015-11-19 01:04:37 -08:00
1 parent 6cfae1462f
commit ffe19807db
14 files changed
+129 -72

No files matched your search

@@ -0,0 +1,26 @@
/*******************************************************************************
* Copyright (c) 2011-2014 SirSengir.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the GNU Lesser Public License v3
* which accompanies this distribution, and is available at
* http://www.gnu.org/licenses/lgpl-3.0.txt
*
* Various Contributors including, but not limited to:
* SirSengir (original work), CovertJaguar, Player, Binnie, MysteriousAges
******************************************************************************/
package forestry.mail.blocks;
import net.minecraft.block.material.Material;
import net.minecraft.item.ItemStack;
import forestry.core.blocks.BlockBase;
public class BlockMail extends BlockBase {
public BlockMail() {
super(Material.iron);
}
public ItemStack get(BlockMailType type) {
return new ItemStack(this, 1, type.ordinal());
}
}
@@ -0,0 +1,19 @@
/*******************************************************************************
* Copyright (c) 2011-2014 SirSengir.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the GNU Lesser Public License v3
* which accompanies this distribution, and is available at
* http://www.gnu.org/licenses/lgpl-3.0.txt
*
* Various Contributors including, but not limited to:
* SirSengir (original work), CovertJaguar, Player, Binnie, MysteriousAges
******************************************************************************/
package forestry.mail.blocks;
public enum BlockMailType {
MAILBOX,
TRADE_STATION,
STAMP_COLLECTOR;
public static final BlockMailType[] VALUES = values();
}
@@ -0,0 +1,22 @@
/*******************************************************************************
* Copyright (c) 2011-2014 SirSengir.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the GNU Lesser Public License v3
* which accompanies this distribution, and is available at
* http://www.gnu.org/licenses/lgpl-3.0.txt
*
* Various Contributors including, but not limited to:
* SirSengir (original work), CovertJaguar, Player, Binnie, MysteriousAges
******************************************************************************/
package forestry.mail.blocks;
import forestry.core.blocks.BlockRegistry;
import forestry.core.items.ItemBlockForestry;
public class BlockRegistryMail extends BlockRegistry {
public final BlockMail mail;
public BlockRegistryMail() {
mail = registerBlock(new BlockMail(), ItemBlockForestry.class, "mail");
}
}