use of net.glowstone.block.entity.DispenserEntity in project Glowstone by GlowstoneMC.
the class BlockDispenser method trigger.
public void trigger(GlowBlock block) {
BlockEntity te = block.getBlockEntity();
if (!(te instanceof DispenserEntity)) {
return;
}
DispenserEntity teDispenser = (DispenserEntity) te;
GlowDispenser dispenser = (GlowDispenser) teDispenser.getState();
dispenser.dispense();
}
Aggregations