mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-24 22:07:59 +01:00
20 lines
565 B
Java
20 lines
565 B
Java
|
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);
|
||
|
}
|
||
|
}
|