Search in sources :

Example 1 with UpgradeButtonsList

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();
    }
}
Also used : Entity(net.minecraft.world.entity.Entity) PlaneEntity(xyz.przemyk.simpleplanes.entities.PlaneEntity) PlaneEntity(xyz.przemyk.simpleplanes.entities.PlaneEntity) UpgradeButtonsList(xyz.przemyk.simpleplanes.UpgradeButtonsList)

Aggregations

Entity (net.minecraft.world.entity.Entity)1 UpgradeButtonsList (xyz.przemyk.simpleplanes.UpgradeButtonsList)1 PlaneEntity (xyz.przemyk.simpleplanes.entities.PlaneEntity)1