mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-22 07:22:20 +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
@@ -8,34 +8,35 @@ import noppes.npcs.NoppesUtilServer;
|
||||
import noppes.npcs.client.gui.global.GuiNPCManageQuest;
|
||||
import noppes.npcs.controllers.data.Quest;
|
||||
|
||||
public class ContainerNpcQuestReward extends Container{
|
||||
public ContainerNpcQuestReward(EntityPlayer player){
|
||||
Quest quest = NoppesUtilServer.getEditingQuest(player);
|
||||
if(player.worldObj.isRemote)
|
||||
quest = GuiNPCManageQuest.quest;
|
||||
for(int l = 0; l < 3; l++){
|
||||
for(int k1 = 0; k1 < 3; k1++){
|
||||
addSlotToContainer(new Slot(quest.rewardItems, k1 + l * 3, 105 + k1 * 18, 17 + l * 18));
|
||||
}
|
||||
}
|
||||
|
||||
for(int i1 = 0; i1 < 3; i1++){
|
||||
for(int l1 = 0; l1 < 9; l1++){
|
||||
addSlotToContainer(new Slot(player.inventory, l1 + i1 * 9 + 9, 8 + l1 * 18, 84 + i1 * 18));
|
||||
public class ContainerNpcQuestReward extends Container {
|
||||
public ContainerNpcQuestReward(EntityPlayer player) {
|
||||
Quest quest = NoppesUtilServer.getEditingQuest(player);
|
||||
if (player.worldObj.isRemote)
|
||||
quest = GuiNPCManageQuest.quest;
|
||||
for (int l = 0; l < 3; l++) {
|
||||
for (int k1 = 0; k1 < 3; k1++) {
|
||||
addSlotToContainer(new Slot(quest.rewardItems, k1 + l * 3, 105 + k1 * 18, 17 + l * 18));
|
||||
}
|
||||
}
|
||||
|
||||
for(int j1 = 0; j1 < 9; j1++){
|
||||
addSlotToContainer(new Slot(player.inventory, j1, 8 + j1 * 18, 142));
|
||||
for (int i1 = 0; i1 < 3; i1++) {
|
||||
for (int l1 = 0; l1 < 9; l1++) {
|
||||
addSlotToContainer(new Slot(player.inventory, l1 + i1 * 9 + 9, 8 + l1 * 18, 84 + i1 * 18));
|
||||
}
|
||||
}
|
||||
|
||||
for (int j1 = 0; j1 < 9; j1++) {
|
||||
addSlotToContainer(new Slot(player.inventory, j1, 8 + j1 * 18, 142));
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public ItemStack transferStackInSlot(EntityPlayer par1EntityPlayer, int i){
|
||||
public ItemStack transferStackInSlot(EntityPlayer par1EntityPlayer, int i) {
|
||||
return null;
|
||||
}
|
||||
@Override
|
||||
public boolean canInteractWith(EntityPlayer entityplayer) {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean canInteractWith(EntityPlayer entityplayer) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user