Java Code Examples for cn.nukkit.utils.Rail.Orientation#metadata()

The following examples show how to use cn.nukkit.utils.Rail.Orientation#metadata() . These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source Project: Jupiter   File: BlockRail.java    License: GNU General Public License v3.0 4 votes vote down vote up
public void setOrientation(Orientation o) {
    if (o.metadata() != this.getRealMeta()) {
        this.setDamage(o.metadata());
        this.level.setBlock(this, this, true, true);
    }
}
 
Example 2
Source Project: Nukkit   File: BlockRail.java    License: GNU General Public License v3.0 4 votes vote down vote up
public void setOrientation(Orientation o) {
    if (o.metadata() != this.getRealMeta()) {
        this.setDamage(o.metadata());
        this.level.setBlock(this, this, false, true);
    }
}
 
Example 3
Source Project: Nukkit   File: BlockRail.java    License: GNU General Public License v3.0 4 votes vote down vote up
public void setOrientation(Orientation o) {
    if (o.metadata() != this.getRealMeta()) {
        this.setDamage(o.metadata());
        this.level.setBlock(this, this, false, true);
    }
}