mirror of
https://github.com/GTNewHorizons/Binnie.git
synced 2026-11-19 03:49:07 +00:00
Improve code readability in binnie.extrabees package and other packages
* Improve code readability in binnie.extrabees package and other packages * Fix compile error after refactoring
This commit is contained in:
1 parent
b609d6688f
commit
c09ad04284
95 files changed
+3916
-3900
No files matched your search
@@ -1,38 +1,34 @@
|
||||
//
|
||||
// Decompiled by Procyon v0.5.30
|
||||
//
|
||||
|
||||
package binnie.extrabees.genetics.effect;
|
||||
|
||||
import net.minecraft.init.Items;
|
||||
import net.minecraft.item.Item;
|
||||
import java.util.Random;
|
||||
import binnie.extrabees.ExtraBees;
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
import binnie.extrabees.ExtraBees;
|
||||
import net.minecraft.client.renderer.texture.IIconRegister;
|
||||
import net.minecraft.block.BlockWeb;
|
||||
import net.minecraft.client.renderer.texture.IIconRegister;
|
||||
import net.minecraft.init.Items;
|
||||
import net.minecraft.item.Item;
|
||||
|
||||
import java.util.Random;
|
||||
|
||||
public class BlockEctoplasm extends BlockWeb {
|
||||
public BlockEctoplasm() {
|
||||
setLightOpacity(1);
|
||||
setHardness(0.5f);
|
||||
}
|
||||
|
||||
public class BlockEctoplasm extends BlockWeb
|
||||
{
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public void registerBlockIcons(final IIconRegister register) {
|
||||
this.blockIcon = ExtraBees.proxy.getIcon(register, "ectoplasm");
|
||||
}
|
||||
|
||||
public BlockEctoplasm() {
|
||||
this.setLightOpacity(1);
|
||||
this.setHardness(0.5f);
|
||||
public void registerBlockIcons(IIconRegister register) {
|
||||
blockIcon = ExtraBees.proxy.getIcon(register, "ectoplasm");
|
||||
}
|
||||
|
||||
@Override
|
||||
public int quantityDropped(final Random rand) {
|
||||
public int quantityDropped(Random rand) {
|
||||
return (rand.nextInt(5) == 0) ? 1 : 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Item getItemDropped(final int p_149650_1_, final Random p_149650_2_, final int p_149650_3_) {
|
||||
public Item getItemDropped(int meta, Random rand, int fortune) {
|
||||
return Items.slime_ball;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user