Unicopia/src/main/java/com/minelittlepony/unicopia/container/SpellbookScreenHandler.java

20 lines
565 B
Java
Raw Normal View History

2021-11-09 17:29:55 +01:00
package com.minelittlepony.unicopia.container;
import com.minelittlepony.unicopia.EquinePredicates;
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.entity.player.PlayerInventory;
import net.minecraft.screen.ScreenHandler;
public class SpellBookScreenHandler extends ScreenHandler {
protected SpellBookScreenHandler(int syncId, PlayerInventory inv) {
super(UScreenHandlers.SPELL_BOOK, syncId);
}
@Override
public boolean canUse(PlayerEntity player) {
return EquinePredicates.IS_CASTER.test(player);
}
}