use of com.bergerkiller.generated.net.minecraft.world.entity.decoration.EntityItemFrameHandle in project BKCommonLib by bergerhealer.
the class CommonMapController method onEntityAdded.
@EventHandler(priority = EventPriority.MONITOR)
protected synchronized void onEntityAdded(EntityAddEvent event) {
if (this.isFrameDisplaysEnabled && event.getEntity() instanceof ItemFrame) {
EntityItemFrameHandle frameHandle = EntityItemFrameHandle.createHandle(HandleConversion.toEntityHandle(event.getEntity()));
getItemFrameEntities(new ItemFrameClusterKey(frameHandle)).add(frameHandle);
onAddItemFrame(frameHandle);
}
}
Aggregations