Java 类org.bukkit.SandstoneType 实例源码

项目:Thermos-Bukkit    文件:Sandstone.java   
public Sandstone(SandstoneType type) {
    this();
    setType(type);
}
项目:CauldronGit    文件:Sandstone.java   
public Sandstone(SandstoneType type) {
    this();
    setType(type);
}
项目:Cauldron    文件:Sandstone.java   
public Sandstone(SandstoneType type) {
    this();
    setType(type);
}
项目:Cauldron    文件:Sandstone.java   
public Sandstone(SandstoneType type) {
    this();
    setType(type);
}
项目:Cauldron    文件:Sandstone.java   
public Sandstone(SandstoneType type) {
    this();
    setType(type);
}
项目:Almura-API    文件:Sandstone.java   
public Sandstone(SandstoneType type) {
    this();
    setType(type);
}
项目:BedrockAPI    文件:Sandstone.java   
public Sandstone(SandstoneType type) {
}
项目:BedrockAPI    文件:Sandstone.java   
public SandstoneType getType() {
    return null;
}
项目:BedrockAPI    文件:Sandstone.java   
public void setType(SandstoneType type) {
}
项目:Spigot-API    文件:Sandstone.java   
public Sandstone(SandstoneType type) {
    this();
    setType(type);
}
项目:CraftFX    文件:MaterialDataUtil.java   
public static MaterialData getMaterialData(String identifier) {
    final String[] split = identifier.replaceAll("\\s+", "_").split("\\W");
    // TODO: Add additional material/name database like essentials/worldedit have
    Material material = matchMaterial(split[0]);

    if (material == null) {
        // try worldedit
        material = getWEMaterial(split[0]);
        if (material == null) return null;
    }

    if (split.length == 1) {
        return new MaterialData(material);
    }

    try {
        final byte rawData = Byte.parseByte(split[1]);
        return new MaterialData(material, rawData);
    } catch (NumberFormatException e) {
        // ignore
    }

    switch (material) {
        case LEAVES:
            return getMaterialData(material, Leaves::new, TreeSpecies.class, split[1]);
        case COAL:
            return getMaterialData(material, Coal::new, CoalType.class, split[1]);
        case LONG_GRASS:
            return getMaterialData(material, LongGrass::new, GrassSpecies.class, split[1]);
        case SANDSTONE:
            return getMaterialData(material, Sandstone::new, SandstoneType.class, split[1]);
        case MONSTER_EGG:
            return getMaterialData(material, SpawnEgg::new, EntityType.class, split[1]);
        case LOG:
            return getMaterialData(material, Tree::new, TreeSpecies.class, split[1]);
        case WOOD_STEP:
            return getMaterialData(material, WoodenStep::new, TreeSpecies.class, split[1]);
        case WOOL:
            return getMaterialData(material, Wool::new, DyeColor.class, split[1]);
        // TODO: Add Dye here when Spigot finally accepts my PR to match other MaterialData types
        default:
            // Couldn't find additional data for this material
            return new MaterialData(material);
    }
}
项目:Bukkit-JavaDoc    文件:Sandstone.java   
public Sandstone(SandstoneType type) {
    this();
    setType(type);
}
项目:Thermos-Bukkit    文件:Sandstone.java   
/**
 * Gets the current type of this sandstone
 *
 * @return SandstoneType of this sandstone
 */
public SandstoneType getType() {
    return SandstoneType.getByData(getData());
}
项目:Thermos-Bukkit    文件:Sandstone.java   
/**
 * Sets the type of this sandstone
 *
 * @param type New type of this sandstone
 */
public void setType(SandstoneType type) {
    setData(type.getData());
}
项目:CauldronGit    文件:Sandstone.java   
/**
 * Gets the current type of this sandstone
 *
 * @return SandstoneType of this sandstone
 */
public SandstoneType getType() {
    return SandstoneType.getByData(getData());
}
项目:CauldronGit    文件:Sandstone.java   
/**
 * Sets the type of this sandstone
 *
 * @param type New type of this sandstone
 */
public void setType(SandstoneType type) {
    setData(type.getData());
}
项目:Cauldron    文件:Sandstone.java   
/**
 * Gets the current type of this sandstone
 *
 * @return SandstoneType of this sandstone
 */
public SandstoneType getType() {
    return SandstoneType.getByData(getData());
}
项目:Cauldron    文件:Sandstone.java   
/**
 * Sets the type of this sandstone
 *
 * @param type New type of this sandstone
 */
public void setType(SandstoneType type) {
    setData(type.getData());
}
项目:Cauldron    文件:Sandstone.java   
/**
 * Gets the current type of this sandstone
 *
 * @return SandstoneType of this sandstone
 */
public SandstoneType getType() {
    return SandstoneType.getByData(getData());
}
项目:Cauldron    文件:Sandstone.java   
/**
 * Sets the type of this sandstone
 *
 * @param type New type of this sandstone
 */
public void setType(SandstoneType type) {
    setData(type.getData());
}
项目:Cauldron    文件:Sandstone.java   
/**
 * Gets the current type of this sandstone
 *
 * @return SandstoneType of this sandstone
 */
public SandstoneType getType() {
    return SandstoneType.getByData(getData());
}
项目:Cauldron    文件:Sandstone.java   
/**
 * Sets the type of this sandstone
 *
 * @param type New type of this sandstone
 */
public void setType(SandstoneType type) {
    setData(type.getData());
}
项目:Almura-API    文件:Sandstone.java   
/**
 * Gets the current type of this sandstone
 *
 * @return SandstoneType of this sandstone
 */
public SandstoneType getType() {
    return SandstoneType.getByData(getData());
}
项目:Almura-API    文件:Sandstone.java   
/**
 * Sets the type of this sandstone
 *
 * @param type New type of this sandstone
 */
public void setType(SandstoneType type) {
    setData(type.getData());
}
项目:Spigot-API    文件:Sandstone.java   
/**
 * Gets the current type of this sandstone
 *
 * @return SandstoneType of this sandstone
 */
public SandstoneType getType() {
    return SandstoneType.getByData(getData());
}
项目:Spigot-API    文件:Sandstone.java   
/**
 * Sets the type of this sandstone
 *
 * @param type New type of this sandstone
 */
public void setType(SandstoneType type) {
    setData(type.getData());
}
项目:Bukkit-JavaDoc    文件:Sandstone.java   
/**
 * Gets the current type of this sandstone
 *
 * @return SandstoneType of this sandstone
 */
public SandstoneType getType() {
    return SandstoneType.getByData(getData());
}
项目:Bukkit-JavaDoc    文件:Sandstone.java   
/**
 * Sets the type of this sandstone
 *
 * @param type New type of this sandstone
 */
public void setType(SandstoneType type) {
    setData(type.getData());
}