Search in sources :

Example 1 with SignEntity

use of net.glowstone.block.entity.SignEntity in project Glowstone by GlowstoneMC.

the class GlowSign method update.

@Override
public boolean update(boolean force, boolean applyPhysics) {
    boolean result = super.update(force, applyPhysics);
    if (result) {
        SignEntity sign = getBlockEntity();
        sign.setLines(lines);
        sign.updateInRange();
    }
    return result;
}
Also used : SignEntity(net.glowstone.block.entity.SignEntity)

Example 2 with SignEntity

use of net.glowstone.block.entity.SignEntity in project Glowstone by GlowstoneMC.

the class GlowSign method update.

@Override
public boolean update(boolean force, boolean applyPhysics) {
    boolean result = super.update(force, applyPhysics);
    if (result) {
        SignEntity sign = getBlockEntity();
        sign.setLines(lines);
        sign.updateInRange();
    }
    return result;
}
Also used : SignEntity(net.glowstone.block.entity.SignEntity)

Aggregations

SignEntity (net.glowstone.block.entity.SignEntity)2