Update to Minecraft 1.19.3

By: md_5 <git@md-5.net>
This commit is contained in:
Bukkit/Spigot
2022-12-08 03:13:00 +11:00
parent 6ea8b24628
commit 7a87d86241
30 changed files with 831 additions and 40 deletions

View File

@@ -0,0 +1,40 @@
package org.bukkit.block;
import org.bukkit.inventory.BlockInventoryHolder;
import org.bukkit.inventory.ChiseledBookshelfInventory;
import org.jetbrains.annotations.NotNull;
/**
* Represents a captured state of a chiseled bookshelf.
*/
public interface ChiseledBookshelf extends TileState, BlockInventoryHolder {
/**
* Gets the last interacted inventory slot.
*
* @return the last interacted slot
*/
int getLastInteractedSlot();
/**
* Sets the last interacted inventory slot.
*
* @param lastInteractedSlot the new last interacted slot
*/
void setLastInteractedSlot(int lastInteractedSlot);
/**
* @return inventory
* @see Container#getInventory()
*/
@NotNull
@Override
ChiseledBookshelfInventory getInventory();
/**
* @return snapshot inventory
* @see Container#getSnapshotInventory()
*/
@NotNull
ChiseledBookshelfInventory getSnapshotInventory();
}

View File

@@ -0,0 +1,7 @@
package org.bukkit.block;
/**
* Represents a captured state of a hanging sign.
*/
public interface HangingSign extends Sign {
}

View File

@@ -0,0 +1,46 @@
package org.bukkit.block.data.type;
import java.util.Set;
import org.bukkit.block.data.Directional;
import org.jetbrains.annotations.NotNull;
/**
* Interface to the 'slot_0_occupied', 'slow_1_occupied' ... 'slot_5_occupied'
* flags on a bookshelf which indicate which slots are occupied rendered on the
* outside.
* <br>
* Block may have 0, 1... {@link #getMaximumOccupiedSlots()}-1 occupied slots.
*/
public interface ChiseledBookshelf extends Directional {
/**
* Checks if the following slot is occupied.
*
* @param slot to check
* @return if slot is occupied
*/
boolean isSlotOccupied(int slot);
/**
* Sets whether the following slot is occupied.
*
* @param slot to set
* @param occupied book
*/
void setSlotOccupied(int slot, boolean occupied);
/**
* Get the indexes of all the occupied slots present on this block.
*
* @return set of all occupied slots
*/
@NotNull
Set<Integer> getOccupiedSlots();
/**
* Get the maximum amount of slots on this block.
*
* @return maximum occupied slots count
*/
int getMaximumOccupiedSlots();
}

View File

@@ -0,0 +1,8 @@
package org.bukkit.block.data.type;
import org.bukkit.block.data.Attachable;
import org.bukkit.block.data.Rotatable;
import org.bukkit.block.data.Waterlogged;
public interface HangingSign extends Attachable, Rotatable, Waterlogged {
}

View File

@@ -0,0 +1,7 @@
package org.bukkit.block.data.type;
import org.bukkit.block.data.Directional;
import org.bukkit.block.data.Waterlogged;
public interface WallHangingSign extends Directional, Waterlogged {
}