Package org.bukkit.material

Examples of org.bukkit.material.PistonExtensionMaterial


                  topHalf = block.getRelative(BlockFace.UP);
              }
              bottomHalf.setTypeId(0);
              topHalf.setTypeId(0);
          } else if(state.getData() instanceof PistonExtensionMaterial) {
              PistonExtensionMaterial extension = (PistonExtensionMaterial)state.getData();
              Block piston = block.getRelative(extension.getAttachedFace());
              if(piston.getTypeId() != 0) {
                  this.altState = piston.getState();
                  piston.setTypeId(0, false);
              }
              block.setTypeId(0, false);
View Full Code Here


            Sign sign = (Sign)block.getState();
            int i = 0;
            for(String line : ((Sign)state).getLines())
                sign.setLine(i++, line);
        } else if(state.getData() instanceof PistonExtensionMaterial) {
            PistonExtensionMaterial extension = (PistonExtensionMaterial)state.getData();
            Block piston = block.getRelative(extension.getAttachedFace());
            block.setTypeIdAndData(state.getTypeId(), state.getData().getData(), false);
            if(altState != null) {
                piston.setTypeIdAndData(altState.getTypeId(), altState.getData().getData(), false);
            }
        } else if(state.getData() instanceof Attachable) {
View Full Code Here

TOP

Related Classes of org.bukkit.material.PistonExtensionMaterial

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.