-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
285 additions
and
44 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
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
33 changes: 33 additions & 0 deletions
33
src/main/java/HxCKDMS/HxCBlocks/Blocks/BlockSpawnerAccelerator.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,33 @@ | ||
package HxCKDMS.HxCBlocks.Blocks; | ||
|
||
import HxCKDMS.HxCBlocks.Reference.References; | ||
import HxCKDMS.HxCBlocks.Registry.CreativeTabHxCBlocks; | ||
import HxCKDMS.HxCBlocks.TileEntities.TileSpawnerAccelerator; | ||
import net.minecraft.block.BlockContainer; | ||
import net.minecraft.block.material.Material; | ||
import net.minecraft.tileentity.TileEntity; | ||
import net.minecraft.world.IBlockAccess; | ||
import net.minecraft.world.World; | ||
|
||
public class BlockSpawnerAccelerator extends BlockContainer { | ||
|
||
public BlockSpawnerAccelerator(Material material) { | ||
super(material); | ||
setCreativeTab(CreativeTabHxCBlocks.tabHxCBlocks); | ||
setBlockName("Accelerator"); | ||
setStepSound(soundTypeMetal); | ||
setBlockTextureName(References.MOD_ID + ":Accelerator"); | ||
setHardness(1.0F); | ||
setResistance(1600.0F); | ||
} | ||
|
||
@Override | ||
public boolean canConnectRedstone(IBlockAccess world, int x, int y, int z, int side) { | ||
return true; | ||
} | ||
|
||
@Override | ||
public TileEntity createNewTileEntity(World world, int metadata) { | ||
return new TileSpawnerAccelerator(); | ||
} | ||
} |
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
Oops, something went wrong.