-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #304 from MCTian-mi/pyrotech-integration
Pyrotech integration
- Loading branch information
Showing
21 changed files
with
373 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
src/main/java/supersymmetry/api/metatileentity/multiblock/SuSyMultiblockAbilities.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package supersymmetry.api.metatileentity.multiblock; | ||
|
||
import gregtech.api.metatileentity.multiblock.MultiblockAbility; | ||
import net.minecraftforge.items.IItemHandlerModifiable; | ||
|
||
public class SuSyMultiblockAbilities { | ||
public static final MultiblockAbility<IItemHandlerModifiable> PRIMITIVE_IMPORT_ITEMS = new MultiblockAbility<>("primitive_import_items"); | ||
public static final MultiblockAbility<IItemHandlerModifiable> PRIMITIVE_EXPORT_ITEMS = new MultiblockAbility<>("primitive_export_items"); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
46 changes: 46 additions & 0 deletions
46
src/main/java/supersymmetry/common/blocks/BlockResource1.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
package supersymmetry.common.blocks; | ||
|
||
import gregtech.api.block.VariantBlock; | ||
import net.minecraft.block.SoundType; | ||
import net.minecraft.block.state.IBlockState; | ||
import net.minecraft.util.IStringSerializable; | ||
|
||
import javax.annotation.Nonnull; | ||
|
||
public class BlockResource1 extends VariantBlock<BlockResource1.ResourceBlockType> { | ||
|
||
public BlockResource1() { | ||
super(net.minecraft.block.material.Material.IRON); | ||
setTranslationKey("resource_block_1"); | ||
setHardness(3.0f); | ||
setResistance(3.0f); | ||
setSoundType(SoundType.METAL); | ||
setHarvestLevel("pickaxe", 1); | ||
setDefaultState(getState(ResourceBlockType.NATIVE_COPPER)); | ||
} | ||
|
||
public enum ResourceBlockType implements IStringSerializable { | ||
NATIVE_COPPER("native_copper", 1); | ||
|
||
private final String name; | ||
private final int harvestLevel; | ||
|
||
ResourceBlockType(String name, int harvestLevel) { | ||
this.name = name; | ||
this.harvestLevel = harvestLevel; | ||
} | ||
|
||
@Nonnull | ||
public String getName() { | ||
return this.name; | ||
} | ||
|
||
public int getHarvestLevel(IBlockState state) { | ||
return this.harvestLevel; | ||
} | ||
|
||
public String getHarvestTool(IBlockState state) { | ||
return "pickaxe"; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.