Package org.spout.vanilla.data.drops

Examples of org.spout.vanilla.data.drops.SwitchDrops


  }

  @Override
  public void initialize() {
    setLiquidObstacle(false).setHardness(0.0F).setResistance(0.0F).setTransparent();
    SwitchDrops drops = getDrops().DEFAULT.clear().addSwitch(ToolTypeFlags.SHEARS);
    drops.TRUE.add(this);
    drops.FALSE.add(VanillaMaterials.SEEDS).setChance(0.15);
  }
View Full Code Here


    this.addMiningType(ToolType.SPADE);
  }

  @Override
  public void initialize() {
    SwitchDrops drops = getDrops().DEFAULT.clear().addSwitch().setChance(0.1);
    drops.TRUE.add(VanillaMaterials.FLINT);
    drops.FALSE.add(this);
    this.getDrops().EXPLOSION.clear().add(this);
  }
View Full Code Here

    }
  }

  @Override
  public void initialize() {
    SwitchDrops drops = getDrops().DEFAULT.clear().addSwitch(ToolTypeFlags.SHEARS);
    drops.TRUE.add(this);
    drops.FALSE.add(VanillaMaterials.SAPLING.getSubMaterial(getData())).setChance(0.05);
    if (getData() == 0) {
      drops.FALSE.add(VanillaMaterials.RED_APPLE).setChance(0.005);
    }
View Full Code Here

TOP

Related Classes of org.spout.vanilla.data.drops.SwitchDrops

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.