Examples of PaintingType


Examples of org.spout.vanilla.data.PaintingType

    for (PaintingType paintingType : PaintingType.values()) {
      if (paintingType.canBePlaced(block, against)) {
        list.add(paintingType);
      }
    }
    PaintingType paintingType = list.get(GenericMath.getRandom().nextInt(list.size() - 1));

    Entity e = world.createEntity(paintingType.getCenter(against, block.getPosition()), Painting.class);
    Painting painting = e.add(Painting.class);
    painting.setType(paintingType);
    painting.setFace(against);
    world.spawnEntity(e);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.