Remap CraftBukkit to Mojang+Yarn Mappings
By: Initial Source <noreply+automated@papermc.io>
This commit is contained in:
parent
a265d64138
commit
30e4583dbe
1780 changed files with 44628 additions and 41274 deletions
|
@ -0,0 +1,49 @@
|
|||
--- a/net/minecraft/world/Container.java
|
||||
+++ b/net/minecraft/world/Container.java
|
||||
@@ -6,8 +6,12 @@
|
||||
import net.minecraft.world.entity.player.Player;
|
||||
import net.minecraft.world.item.Item;
|
||||
import net.minecraft.world.item.ItemStack;
|
||||
+// CraftBukkit start
|
||||
+import net.minecraft.world.item.crafting.RecipeHolder;
|
||||
import net.minecraft.world.level.Level;
|
||||
import net.minecraft.world.level.block.entity.BlockEntity;
|
||||
+import org.bukkit.craftbukkit.entity.CraftHumanEntity;
|
||||
+// CraftBukkit end
|
||||
|
||||
public interface Container extends Clearable {
|
||||
|
||||
@@ -25,9 +29,7 @@
|
||||
|
||||
void setItem(int slot, ItemStack stack);
|
||||
|
||||
- default int getMaxStackSize() {
|
||||
- return 99;
|
||||
- }
|
||||
+ int getMaxStackSize(); // CraftBukkit
|
||||
|
||||
default int getMaxStackSize(ItemStack stack) {
|
||||
return Math.min(this.getMaxStackSize(), stack.getMaxStackSize());
|
||||
@@ -91,4 +93,22 @@
|
||||
|
||||
return world == null ? false : (world.getBlockEntity(blockposition) != blockEntity ? false : player.canInteractWithBlock(blockposition, (double) range));
|
||||
}
|
||||
+
|
||||
+ // CraftBukkit start
|
||||
+ java.util.List<ItemStack> getContents();
|
||||
+
|
||||
+ void onOpen(CraftHumanEntity who);
|
||||
+
|
||||
+ void onClose(CraftHumanEntity who);
|
||||
+
|
||||
+ java.util.List<org.bukkit.entity.HumanEntity> getViewers();
|
||||
+
|
||||
+ org.bukkit.inventory.InventoryHolder getOwner();
|
||||
+
|
||||
+ void setMaxStackSize(int size);
|
||||
+
|
||||
+ org.bukkit.Location getLocation();
|
||||
+
|
||||
+ int MAX_STACK = 99;
|
||||
+ // CraftBukkit end
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue