mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-23 09:27:45 +01:00
Add getLocation for InventoryEnderChest
This commit is contained in:
parent
0a81101bd2
commit
c4baa9cdf9
@ -1,8 +1,9 @@
|
||||
--- a/net/minecraft/server/InventoryEnderChest.java
|
||||
+++ b/net/minecraft/server/InventoryEnderChest.java
|
||||
@@ -1,11 +1,21 @@
|
||||
@@ -1,11 +1,27 @@
|
||||
package net.minecraft.server;
|
||||
|
||||
+import org.bukkit.Location;
|
||||
+import org.bukkit.inventory.InventoryHolder;
|
||||
+
|
||||
public class InventoryEnderChest extends InventorySubcontainer {
|
||||
@ -14,6 +15,11 @@
|
||||
+ public InventoryHolder getBukkitOwner() {
|
||||
+ 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(EntityHuman owner) {
|
||||
|
Loading…
Reference in New Issue
Block a user