Search in sources :

Example 1 with GlowBeacon

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

the class BlockBeacon method blockInteract.

@Override
public boolean blockInteract(GlowPlayer player, GlowBlock block, BlockFace face, Vector clickedLoc) {
    GlowBeacon beacon = (GlowBeacon) block.getState();
    player.openInventory(beacon.getInventory());
    player.incrementStatistic(Statistic.BEACON_INTERACTION);
    return true;
}
Also used : GlowBeacon(net.glowstone.block.entity.state.GlowBeacon)

Aggregations

GlowBeacon (net.glowstone.block.entity.state.GlowBeacon)1