use of com.loohp.interactionvisualizer.entityholders.ArmorStand in project InteractionVisualizer by LOOHP.
the class BrewingStandDisplay method onBreakBrewingStand.
@EventHandler(priority = EventPriority.MONITOR)
public void onBreakBrewingStand(TileEntityRemovedEvent event) {
Block block = event.getBlock();
if (!brewstand.containsKey(block)) {
return;
}
Map<String, Object> map = brewstand.get(block);
if (map.get("Item") instanceof Item) {
Item item = (Item) map.get("Item");
PacketManager.removeItem(InteractionVisualizerAPI.getPlayers(), item);
}
if (map.get("Stand") instanceof ArmorStand) {
ArmorStand stand = (ArmorStand) map.get("Stand");
PacketManager.removeArmorStand(InteractionVisualizerAPI.getPlayers(), stand);
}
brewstand.remove(block);
}
Aggregations