Package org.spout.physics.collision.shape

Examples of org.spout.physics.collision.shape.BoxShape


    super(dataMask, name, id, model, new BoxShape(1, 1, 1));
    setOpaque();
  }

  public Solid(String name, int id, int data, VanillaBlockMaterial parent, String model) {
    super(name, id, data, parent, model, new BoxShape(1, 1, 1));
    setOpaque();
  }
View Full Code Here


  public static final int maxLength = 13;
  public static final EffectRange physicsRange = new PlusEffectRange(maxLength, true);
  private final boolean sticky;

  public PistonBlock(String name, int id, boolean sticky) {
    super(name, id, null, new BoxShape(1, 1, 1));
    this.sticky = sticky;
    this.setHardness(0.5F).setResistance(2.5F).setTransparent();
  }
View Full Code Here

public class DispenserBlock extends VanillaBlockMaterial implements Directional, RedstoneTarget {
  public static final BlockFaces BTEWNS = new BlockFaces(BlockFace.BOTTOM, BlockFace.TOP, BlockFace.EAST, BlockFace.WEST, BlockFace.NORTH, BlockFace.SOUTH);

  public DispenserBlock(String name, int id) {
    super(name, id, VanillaMaterialModels.DISPENSER, new BoxShape(1, 1, 1), Dispenser.class);
    this.setHardness(3.5F).setResistance(17.5F);
  }
View Full Code Here

import org.spout.vanilla.data.resources.VanillaMaterialModels;
import org.spout.vanilla.material.VanillaBlockMaterial;

public class LockedChest extends VanillaBlockMaterial {
  public LockedChest(String name, int id) {
    super(name, id, VanillaMaterialModels.LOCKED_CHEST, new BoxShape(1, 1, 1));
    this.setResistance(0.0F);
  }
View Full Code Here

import org.spout.vanilla.material.VanillaBlockMaterial;
import org.spout.vanilla.material.block.Directional;

public class EnchantmentTableBlock extends VanillaBlockMaterial implements Directional {
  public EnchantmentTableBlock(String name, int id) {
    super(name, id, VanillaMaterialModels.ENCHANTMENT_TABLE, new BoxShape(1, 1, 1), EnchantmentTable.class);
    this.setHardness(5.0F).setResistance(6000.0F).setOpacity(0).setOcclusion((short) 0, BlockFace.BOTTOM);
    this.getDrops().NOT_CREATIVE.addFlags(ToolTypeFlags.PICKAXE);
  }
View Full Code Here

import org.spout.vanilla.data.resources.VanillaMaterialModels;
import org.spout.vanilla.material.VanillaBlockMaterial;

public class BeaconBlock extends VanillaBlockMaterial {
  public BeaconBlock(String name, int id) {
    super(name, id, VanillaMaterialModels.BEACON, new BoxShape(1, 1, 1), Beacon.class);
    this.setResistance(3.0F).setHardness(15.0F);
    //TODO: Block needs to do special stuff when it is the top of a pyramid.
  }
View Full Code Here

public class FarmLand extends VanillaBlockMaterial implements InitializableMaterial, DynamicMaterial {
  private static final EffectRange WATER_CHECK_RANGE = new CuboidEffectRange(-4, 0, -4, 4, 1, 4);
  private static final EffectRange CROP_CHECK_RANGE = new CuboidEffectRange(-1, 1, -1, 1, 1, 1);

  public FarmLand(String name, int id) {
    super(name, id, VanillaMaterialModels.FARM_LAND, new BoxShape(1, 1, 1));
    this.setHardness(0.6F).setResistance(3.0F).setOpaque();
    this.addMiningType(ToolType.SPADE);
  }
View Full Code Here

import org.spout.vanilla.material.VanillaBlockMaterial;
import org.spout.vanilla.material.block.Directional;

public class PistonExtension extends VanillaBlockMaterial implements Directional {
  public PistonExtension(String name, int id) {
    super(name, id, null, new BoxShape(1, 1, 1));
    this.setHardness(0.5F).setResistance(2.5F).setTransparent();
  }
View Full Code Here

  public static final FurnaceBlock FURNACE_BURNING = new FurnaceBlock("Burning Furnace", 62, FURNACE, true, VanillaMaterialModels.FURNACE);
  public static final float SMELT_TIME = 10.f;
  private final boolean burning;

  public FurnaceBlock(String name, int id, FurnaceBlock parent, boolean burning, String model) {
    super(name, id, BURNING_FLAG, parent, model, new BoxShape(1, 1, 1), Furnace.class);
    this.burning = burning;
    this.setHardness(3.5F).setResistance(17.5F);
    this.getDrops().NOT_CREATIVE.addFlags(ToolTypeFlags.PICKAXE);
  }
View Full Code Here

    this.setHardness(3.5F).setResistance(17.5F);
    this.getDrops().NOT_CREATIVE.addFlags(ToolTypeFlags.PICKAXE);
  }

  public FurnaceBlock(short dataMask, String name, int id, boolean burning, String model) {
    super(dataMask, name, id, model, new BoxShape(1, 1, 1), Furnace.class);
    this.burning = burning;
    this.setHardness(3.5F).setResistance(5.8F);
    this.getDrops().NOT_CREATIVE.addFlags(ToolTypeFlags.PICKAXE);
  }
View Full Code Here

TOP

Related Classes of org.spout.physics.collision.shape.BoxShape

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.