Package org.bukkit.material

Examples of org.bukkit.material.Bed


    private Location findOtherBedPiece(Location checkLoc) {
        if (checkLoc.getBlock().getType() != Material.BED_BLOCK) {
            return null;
        }
        // Construct a bed object at this location
        final Bed b = new Bed(Material.BED_BLOCK, checkLoc.getBlock().getData());
        if (b.isHeadOfBed()) {
            return checkLoc.getBlock().getRelative(b.getFacing().getOppositeFace()).getLocation();
        }
        // We shouldn't ever be looking at the foot, but here's the code for it.
        return checkLoc.getBlock().getRelative(b.getFacing()).getLocation();
    }
View Full Code Here

TOP

Related Classes of org.bukkit.material.Bed

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.