mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-28 12:25:59 +00:00
Full Imports and Code Format Optimization
This commit is contained in:
1 parent
250edf099c
commit
6815f579a7
1192 files changed
+60344
-62167
No files matched your search
@@ -5,22 +5,22 @@ import net.minecraft.inventory.Slot;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import noppes.npcs.roles.RoleCompanion;
|
||||
|
||||
class SlotCompanionWeapon extends Slot{
|
||||
class SlotCompanionWeapon extends Slot {
|
||||
|
||||
final RoleCompanion role;
|
||||
|
||||
public SlotCompanionWeapon(RoleCompanion role, IInventory iinventory, int id, int x, int y){
|
||||
public SlotCompanionWeapon(RoleCompanion role, IInventory iinventory, int id, int x, int y) {
|
||||
super(iinventory, id, x, y);
|
||||
this.role = role;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getSlotStackLimit() {
|
||||
return 1;
|
||||
}
|
||||
@Override
|
||||
public int getSlotStackLimit() {
|
||||
return 1;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isItemValid(ItemStack itemstack) {
|
||||
return role.canWearSword(itemstack);
|
||||
}
|
||||
@Override
|
||||
public boolean isItemValid(ItemStack itemstack) {
|
||||
return role.canWearSword(itemstack);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user