1.3.1
This commit is contained in:
14
src/lishid/openinv/utils/OpenInvHistory.java
Normal file
14
src/lishid/openinv/utils/OpenInvHistory.java
Normal file
@@ -0,0 +1,14 @@
|
||||
package lishid.openinv.utils;
|
||||
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
public class OpenInvHistory {
|
||||
|
||||
public Player player = null;
|
||||
public String lastPlayer = "";
|
||||
|
||||
public OpenInvHistory(Player player)
|
||||
{
|
||||
this.player = player;
|
||||
}
|
||||
}
|
7
src/lishid/openinv/utils/OpenInvToggleState.java
Normal file
7
src/lishid/openinv/utils/OpenInvToggleState.java
Normal file
@@ -0,0 +1,7 @@
|
||||
package lishid.openinv.utils;
|
||||
|
||||
import java.util.HashMap;
|
||||
|
||||
public class OpenInvToggleState {
|
||||
public static HashMap<String, Integer> openInvState = new HashMap<String, Integer>();
|
||||
}
|
31
src/lishid/openinv/utils/PlayerInventoryChest.java
Normal file
31
src/lishid/openinv/utils/PlayerInventoryChest.java
Normal file
@@ -0,0 +1,31 @@
|
||||
package lishid.openinv.utils;
|
||||
|
||||
import net.minecraft.server.ContainerPlayer;
|
||||
import net.minecraft.server.EntityHuman;
|
||||
import net.minecraft.server.EntityPlayer;
|
||||
import net.minecraft.server.InventoryPlayer;
|
||||
|
||||
public class PlayerInventoryChest extends InventoryPlayer
|
||||
{
|
||||
public PlayerInventoryChest(InventoryPlayer inventory) {
|
||||
super(inventory.d);
|
||||
this.armor = inventory.armor;
|
||||
this.items = inventory.items;
|
||||
this.itemInHandIndex = inventory.itemInHandIndex;
|
||||
this.e = inventory.e;
|
||||
this.b(inventory.j());
|
||||
inventory.d.defaultContainer = new ContainerPlayer(this, !inventory.d.world.isStatic);
|
||||
inventory.d.activeContainer = inventory.d.defaultContainer;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getName() {
|
||||
return ((EntityPlayer)this.d).displayName;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean a_(EntityHuman entityhuman)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user