org.bukkit.material
Class TexturedMaterial

java.lang.Object
  extended by org.bukkit.material.MaterialData
      extended by org.bukkit.material.TexturedMaterial
All Implemented Interfaces:
Cloneable
Direct Known Subclasses:
MonsterEggs, SmoothBrick, Step

public abstract class TexturedMaterial
extends MaterialData

Represents textured materials like steps and smooth bricks


Constructor Summary
TexturedMaterial(int type)
          Deprecated. Magic value
TexturedMaterial(int type, byte data)
          Deprecated. Magic value
TexturedMaterial(Material m)
           
TexturedMaterial(Material type, byte data)
          Deprecated. Magic value
 
Method Summary
 TexturedMaterial clone()
           
 Material getMaterial()
          Gets the current Material this block is made of
protected  int getTextureIndex()
          Deprecated. Magic value
abstract  List<Material> getTextures()
          Retrieve a list of possible textures.
 void setMaterial(Material material)
          Sets the material this block is made of
protected  void setTextureIndex(int idx)
          Deprecated. Magic value
 String toString()
           
 
Methods inherited from class org.bukkit.material.MaterialData
equals, getData, getItemType, getItemTypeId, hashCode, setData, toItemStack, toItemStack
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TexturedMaterial

public TexturedMaterial(Material m)

TexturedMaterial

@Deprecated
public TexturedMaterial(int type)
Deprecated. Magic value


TexturedMaterial

@Deprecated
public TexturedMaterial(int type,
                                   byte data)
Deprecated. Magic value


TexturedMaterial

@Deprecated
public TexturedMaterial(Material type,
                                   byte data)
Deprecated. Magic value

Method Detail

getTextures

public abstract List<Material> getTextures()
Retrieve a list of possible textures. The first element of the list will be used as a default.

Returns:
a list of possible textures for this block

getMaterial

public Material getMaterial()
Gets the current Material this block is made of

Returns:
Material of this block

setMaterial

public void setMaterial(Material material)
Sets the material this block is made of

Parameters:
material - New material of this block

getTextureIndex

@Deprecated
protected int getTextureIndex()
Deprecated. Magic value

Get material index from data

Returns:
index of data in textures list

setTextureIndex

@Deprecated
protected void setTextureIndex(int idx)
Deprecated. Magic value

Set material index

Parameters:
idx - - index of data in textures list

toString

public String toString()
Overrides:
toString in class MaterialData

clone

public TexturedMaterial clone()
Overrides:
clone in class MaterialData


Copyright © 2014. All rights reserved.