Plex-FAWE/src/main/java/com/sk89q/worldedit/bukkit/NmsBlock.java
Wizjany ad349aecb1 Support different NMS block classes depending on version.
- The .class files in the contrib folder of the zip go in
  plugins/WorldEdit/nmsblocks
- This allows us to swap new class files in without releasing
a completely new version each time
- Whatever version the last release is for has an inbuilt fallback
- If the plugin and server are mismatched and you have nothing in
  nmsblocks you're screwed
2013-01-18 03:17:52 -05:00

42 lines
990 B
Java

package com.sk89q.worldedit.bukkit;
import org.bukkit.World;
import com.sk89q.worldedit.Vector;
import com.sk89q.worldedit.blocks.BaseBlock;
import com.sk89q.worldedit.foundation.Block;
public abstract class NmsBlock extends BaseBlock {
protected NmsBlock(int type) {
super(type);
}
protected NmsBlock(int type, int data) {
super(type, data);
}
public static boolean verify() {
return false;
}
public static NmsBlock get(World world, Vector vector, int type, int data) {
return null;
}
public static boolean set(World world, Vector vector, Block block) {
return false;
}
public static boolean setSafely(World world, Vector vector, Block block, boolean notify) {
return false;
}
public static boolean hasTileEntity(int type) {
return false;
}
public static boolean isValidBlockType(int type) {
return false;
}
}