mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-01-25 10:32:49 +00:00
34 lines
700 B
Java
34 lines
700 B
Java
package com.hbm.blocks.generic;
|
|
|
|
import java.util.Random;
|
|
|
|
import com.hbm.blocks.ModBlocks;
|
|
|
|
import net.minecraft.block.Block;
|
|
import net.minecraft.block.material.Material;
|
|
import net.minecraft.init.Items;
|
|
import net.minecraft.item.Item;
|
|
import net.minecraft.world.World;
|
|
|
|
public class BlockCoalOil extends Block {
|
|
|
|
public BlockCoalOil(Material mat) {
|
|
super(mat);
|
|
}
|
|
|
|
@Override
|
|
public void updateTick(World world, int x, int y, int z, Random rand) {
|
|
world.setBlock(x, y, z, ModBlocks.ore_coal_oil_burning);
|
|
}
|
|
|
|
@Override
|
|
public Item getItemDropped(int i, Random rand, int j) {
|
|
return Items.coal;
|
|
}
|
|
|
|
@Override
|
|
public int quantityDropped(Random rand) {
|
|
return 2 + rand.nextInt(2);
|
|
}
|
|
}
|