Skip to content

Commit

Permalink
Add Antimatter Power Generation (GTNewHorizons#3117)
Browse files Browse the repository at this point in the history
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
6 people authored Sep 12, 2024
1 parent 07cc2ec commit c2faa68
Show file tree
Hide file tree
Showing 36 changed files with 9,035 additions and 1 deletion.
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 src/main/java/goodgenerator/blocks/structures/AntimatterStructures.java

Large diffs are not rendered by default.

Loading

0 comments on commit c2faa68

Please sign in to comment.