mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-12 21:54:06 +01:00
35 lines
1.1 KiB
Diff
35 lines
1.1 KiB
Diff
|
@@ -1,11 +1,33 @@
|
||
|
package net.minecraft.server;
|
||
|
|
||
|
+// CraftBukkit start
|
||
|
+import org.bukkit.craftbukkit.inventory.CraftInventory;
|
||
|
+import org.bukkit.craftbukkit.inventory.CraftInventoryView;
|
||
|
+import org.bukkit.inventory.InventoryView;
|
||
|
+// CraftBukkit end
|
||
|
+
|
||
|
public class ContainerHorse extends Container {
|
||
|
|
||
|
private IInventory a;
|
||
|
private EntityHorse f;
|
||
|
+
|
||
|
+ // CraftBukkit start
|
||
|
+ org.bukkit.craftbukkit.inventory.CraftInventoryView bukkitEntity;
|
||
|
+ PlayerInventory player;
|
||
|
+
|
||
|
+ @Override
|
||
|
+ public InventoryView getBukkitView() {
|
||
|
+ if (bukkitEntity != null) {
|
||
|
+ return bukkitEntity;
|
||
|
+ }
|
||
|
+
|
||
|
+ CraftInventory inventory = new org.bukkit.craftbukkit.inventory.CraftInventoryHorse(this.a);
|
||
|
+ return bukkitEntity = new CraftInventoryView(player.player.getBukkitEntity(), inventory, this);
|
||
|
+ }
|
||
|
|
||
|
public ContainerHorse(IInventory iinventory, IInventory iinventory1, EntityHorse entityhorse, EntityHuman entityhuman) {
|
||
|
+ player = (PlayerInventory) iinventory;
|
||
|
+ // CraftBukkit end
|
||
|
this.a = iinventory1;
|
||
|
this.f = entityhorse;
|
||
|
byte b0 = 3;
|