Update to Minecraft 1.19.4

By: md_5 <git@md-5.net>
This commit is contained in:
Bukkit/Spigot
2023-03-15 03:30:00 +11:00
parent 86d3c9caa7
commit b76cbe36c5
32 changed files with 1379 additions and 7 deletions

View File

@@ -0,0 +1,34 @@
package org.bukkit.block;
import java.util.List;
import org.bukkit.Material;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
/**
* Represents a captured state of a decorated pot.
*/
public interface DecoratedPot extends TileState {
/**
* Gets the shards which will be dropped when this pot is broken.
*
* @return shards
*/
@NotNull
public List<Material> getShards();
/**
* Add a shard item which will be dropped when this pot is broken.
*
* @param material shard item
*/
public void addShard(@NotNull Material material);
/**
* Set the shards which will be dropped when this pot is broken.
*
* @param shard list of items
*/
public void setShards(@Nullable List<Material> shard);
}

View File

@@ -0,0 +1,28 @@
package org.bukkit.block;
import org.bukkit.inventory.ItemStack;
import org.bukkit.loot.Lootable;
import org.jetbrains.annotations.Nullable;
/**
* Represents a captured state of suspicious sand.
*/
public interface SuspiciousSand extends Lootable, TileState {
/**
* Get the item which will be revealed when the sand is fully brushed away
* and uncovered.
*
* @return the item
*/
@Nullable
public ItemStack getItem();
/**
* Sets the item which will be revealed when the sand is fully brushed away
* and uncovered.
*
* @param item the item
*/
public void setItem(@Nullable ItemStack item);
}

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 DecoratedPot extends Directional, Waterlogged {
}

View File

@@ -0,0 +1,30 @@
package org.bukkit.block.data.type;
import org.bukkit.block.data.Directional;
/**
* 'flower_amount' represents the number of petals.
*/
public interface PinkPetals extends Directional {
/**
* Gets the value of the 'flower_amount' property.
*
* @return the 'flower_amount' value
*/
int getFlowerAmount();
/**
* Sets the value of the 'flower_amount' property.
*
* @param flower_amount the new 'flower_amount' value
*/
void setFlowerAmount(int flower_amount);
/**
* Gets the maximum allowed value of the 'flower_amount' property.
*
* @return the maximum 'flower_amount' value
*/
int getMaximumFlowerAmount();
}

View File

@@ -0,0 +1,30 @@
package org.bukkit.block.data.type;
import org.bukkit.block.data.BlockData;
/**
* 'dusted' represents how far uncovered by brush the block is.
*/
public interface SuspiciousSand extends BlockData {
/**
* Gets the value of the 'dusted' property.
*
* @return the 'dusted' value
*/
int getDusted();
/**
* Sets the value of the 'dusted' property.
*
* @param dusted the new 'dusted' value
*/
void setDusted(int dusted);
/**
* Gets the maximum allowed value of the 'dusted' property.
*
* @return the maximum 'dusted' value
*/
int getMaximumDusted();
}