Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.josh.gomc.blocks;
- import net.minecraft.block.Block;
- import net.minecraft.block.material.Material;
- import net.minecraft.world.IBlockAccess;
- public class BlockBasicBlock extends Block{
- private Block beaconBase;
- public BlockBasicBlock(Material material, float hardness, float resistance, int harvestLevel, boolean beaconBase) {
- super(material);
- this.setHardness(hardness);
- this.setResistance(resistance);
- this.setLightLevel(0.0F);
- this.setHarvestLevel("pickaxe", harvestLevel);
- this.setStepSound(soundTypeStone);
- if(beaconBase){
- this.setBeaconBase();
- }
- }
- public Block setBeaconBase() {
- return beaconBase = this;
- }
- @Override
- public boolean isBeaconBase(IBlockAccess worldObj, int x, int y, int z, int beaconX, int beaconY, int beaconZ)
- {
- return this == beaconBase;
- }
- }
Add Comment
Please, Sign In to add comment