Update to Minecraft 1.19

By: md_5 <git@md-5.net>
This commit is contained in:
Bukkit/Spigot
2022-06-08 02:00:00 +10:00
parent 9bfa9ca85b
commit ec575f5252
88 changed files with 1339 additions and 375 deletions

View File

@@ -16,6 +16,7 @@ public enum Biome implements Keyed {
FOREST,
TAIGA,
SWAMP,
MANGROVE_SWAMP,
RIVER,
NETHER_WASTES,
THE_END,
@@ -64,6 +65,7 @@ public enum Biome implements Keyed {
BASALT_DELTAS,
DRIPSTONE_CAVES,
LUSH_CAVES,
DEEP_DARK,
MEADOW,
GROVE,
SNOWY_SLOPES,

View File

@@ -0,0 +1,7 @@
package org.bukkit.block;
/**
* Represents a captured state of a sculk catalyst.
*/
public interface SculkCatalyst extends TileState {
}

View File

@@ -0,0 +1,27 @@
package org.bukkit.block;
/**
* Represents a captured state of a sculk shrieker.
*/
public interface SculkShrieker extends TileState {
/**
* Gets the most recent warning level of this block.
*
* When the warning level reaches 4, the shrieker will attempt to spawn a
* Warden.
*
* @return current warning level
*/
int getWarningLevel();
/**
* Sets the most recent warning level of this block.
*
* When the warning level reaches 4, the shrieker will attempt to spawn a
* Warden.
*
* @param level new warning level
*/
void setWarningLevel(int level);
}

View File

@@ -0,0 +1,21 @@
package org.bukkit.block.data;
/**
* 'hanging' denotes whether the lantern is hanging from a block.
*/
public interface Hangable extends BlockData {
/**
* Gets the value of the 'hanging' property.
*
* @return the 'hanging' value
*/
boolean isHanging();
/**
* Sets the value of the 'hanging' property.
*
* @param hanging the new 'hanging' value
*/
void setHanging(boolean hanging);
}

View File

@@ -1,23 +1,7 @@
package org.bukkit.block.data.type;
import org.bukkit.block.data.Hangable;
import org.bukkit.block.data.Waterlogged;
/**
* 'hanging' denotes whether the lantern is hanging from a block.
*/
public interface Lantern extends Waterlogged {
/**
* Gets the value of the 'hanging' property.
*
* @return the 'hanging' value
*/
boolean isHanging();
/**
* Sets the value of the 'hanging' property.
*
* @param hanging the new 'hanging' value
*/
void setHanging(boolean hanging);
public interface Lantern extends Hangable, Waterlogged {
}

View File

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

View File

@@ -0,0 +1,24 @@
package org.bukkit.block.data.type;
import org.bukkit.block.data.BlockData;
/**
* 'bloom' indicates whether the sculk catalyst is actively spreading the sculk
* or not.
*/
public interface SculkCatalyst extends BlockData {
/**
* Gets the value of the 'bloom' property.
*
* @return the 'bloom' value
*/
boolean isBloom();
/**
* Sets the value of the 'bloom' property.
*
* @param bloom the new 'bloom' value
*/
void setBloom(boolean bloom);
}

View File

@@ -0,0 +1,39 @@
package org.bukkit.block.data.type;
import org.bukkit.block.data.Waterlogged;
/**
* 'can_summon' indicates whether the sculk shrieker can summon the warden.
* <p>
* 'shrieking' indicated whether the sculk shrieker is shrieking or not.
*/
public interface SculkShrieker extends Waterlogged {
/**
* Gets the value of the 'can_summon' property.
*
* @return the 'can_summon' value
*/
boolean isCanSummon();
/**
* Sets the value of the 'can_summon' property.
*
* @param can_summon the new 'can_summon' value
*/
void setCanSummon(boolean can_summon);
/**
* Gets the value of the 'shrieking' property.
*
* @return the 'shrieking' value
*/
boolean isShrieking();
/**
* Sets the value of the 'shrieking' property.
*
* @param shrieking the new 'shrieking' value
*/
void setShrieking(boolean shrieking);
}