Search in sources :

Example 1 with BedEntity

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

the class GlowBed method update.

@Override
public boolean update(boolean force, boolean applyPhysics) {
    boolean result = super.update(force, applyPhysics);
    if (result) {
        BedEntity bed = getBlockEntity();
        bed.setColor(color.getWoolData());
        getBlockEntity().updateInRange();
    }
    return result;
}
Also used : BedEntity(net.glowstone.block.entity.BedEntity)

Aggregations

BedEntity (net.glowstone.block.entity.BedEntity)1