mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-10 10:17:38 +01:00
Add getLocation for InventoryEnderChest
By: md_5 <git@md-5.net>
This commit is contained in:
parent
b5bd9528a0
commit
a9e3f93ed3
@ -1,8 +1,9 @@
|
|||||||
--- a/net/minecraft/server/InventoryEnderChest.java
|
--- a/net/minecraft/server/InventoryEnderChest.java
|
||||||
+++ b/net/minecraft/server/InventoryEnderChest.java
|
+++ b/net/minecraft/server/InventoryEnderChest.java
|
||||||
@@ -1,11 +1,21 @@
|
@@ -1,11 +1,27 @@
|
||||||
package net.minecraft.server;
|
package net.minecraft.server;
|
||||||
|
|
||||||
|
+import org.bukkit.Location;
|
||||||
+import org.bukkit.inventory.InventoryHolder;
|
+import org.bukkit.inventory.InventoryHolder;
|
||||||
+
|
+
|
||||||
public class InventoryEnderChest extends InventorySubcontainer {
|
public class InventoryEnderChest extends InventorySubcontainer {
|
||||||
@ -14,6 +15,11 @@
|
|||||||
+ public InventoryHolder getBukkitOwner() {
|
+ public InventoryHolder getBukkitOwner() {
|
||||||
+ return owner.getBukkitEntity();
|
+ return owner.getBukkitEntity();
|
||||||
+ }
|
+ }
|
||||||
|
+
|
||||||
|
+ @Override
|
||||||
|
+ public Location getLocation() {
|
||||||
|
+ return new Location(this.a.getWorld().getWorld(), this.a.getPosition().getX(), this.a.getPosition().getY(), this.a.getPosition().getZ());
|
||||||
|
+ }
|
||||||
|
|
||||||
- public InventoryEnderChest() {
|
- public InventoryEnderChest() {
|
||||||
+ public InventoryEnderChest(EntityHuman owner) {
|
+ public InventoryEnderChest(EntityHuman owner) {
|
||||||
|
Loading…
Reference in New Issue
Block a user