forked from GTNewHorizons/GT5-Unofficial
-
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.
Add Antimatter Power Generation (GTNewHorizons#3117)
Co-authored-by: BlueWeabo <ilia.iliev2005@gmail.com> Co-authored-by: Mary <33456283+FourIsTheNumber@users.noreply.github.com> Co-authored-by: BucketBrigade <138534411+CookieBrigade@users.noreply.github.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Martin Robertz <dream-master@gmx.net>
- Loading branch information
1 parent
07cc2ec
commit c2faa68
Showing
36 changed files
with
9,035 additions
and
1 deletion.
There are no files selected for viewing
62 changes: 62 additions & 0 deletions
62
src/main/java/goodgenerator/blocks/regularBlock/AntimatterRenderBlock.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,62 @@ | ||
package goodgenerator.blocks.regularBlock; | ||
|
||
import java.util.ArrayList; | ||
|
||
import net.minecraft.block.Block; | ||
import net.minecraft.block.material.Material; | ||
import net.minecraft.client.renderer.texture.IIconRegister; | ||
import net.minecraft.item.ItemStack; | ||
import net.minecraft.tileentity.TileEntity; | ||
import net.minecraft.world.World; | ||
|
||
import cpw.mods.fml.relauncher.Side; | ||
import cpw.mods.fml.relauncher.SideOnly; | ||
import goodgenerator.blocks.tileEntity.render.TileAntimatter; | ||
|
||
public class AntimatterRenderBlock extends Block { | ||
|
||
public AntimatterRenderBlock() { | ||
super(Material.iron); | ||
this.setResistance(20f); | ||
this.setHardness(-1.0f); | ||
this.setLightLevel(100.0f); | ||
this.setBlockName("gg.antimatterRender"); | ||
} | ||
|
||
@Override | ||
@SideOnly(Side.CLIENT) | ||
public void registerBlockIcons(IIconRegister iconRegister) { | ||
blockIcon = iconRegister.registerIcon("gregtech:iconsets/TRANSPARENT"); | ||
} | ||
|
||
@Override | ||
public boolean isOpaqueCube() { | ||
return false; | ||
} | ||
|
||
@Override | ||
public boolean canRenderInPass(int a) { | ||
return true; | ||
} | ||
|
||
@Override | ||
public boolean renderAsNormalBlock() { | ||
return false; | ||
} | ||
|
||
@Override | ||
public boolean hasTileEntity(int metadata) { | ||
return true; | ||
} | ||
|
||
@Override | ||
public TileEntity createTileEntity(World world, int metadata) { | ||
return new TileAntimatter(); | ||
} | ||
|
||
@Override | ||
public ArrayList<ItemStack> getDrops(World world, int x, int y, int z, int meta, int fortune) { | ||
return new ArrayList<>(); | ||
} | ||
|
||
} |
3,834 changes: 3,834 additions & 0 deletions
3,834
src/main/java/goodgenerator/blocks/structures/AntimatterStructures.java
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.