use of xyz.przemyk.simpleplanes.UpgradeButtonsList in project simple-planes by przemykomo.
the class RemoveUpgradesScreen method init.
@Override
protected void init() {
super.init();
Entity entity = minecraft.level.getEntity(menu.planeID);
if (entity instanceof PlaneEntity) {
buttonsList = new UpgradeButtonsList(minecraft, 120, height, 32, height - 61, 20, (PlaneEntity) entity);
addRenderableWidget(buttonsList);
} else {
onClose();
}
}
Aggregations