diff --git a/api/src/main/java/org/allaymc/api/blockentity/component/BlockEntityBrewingStandBaseComponent.java b/api/src/main/java/org/allaymc/api/blockentity/component/BlockEntityBrewingStandBaseComponent.java index 8c7870052..b5da7abc2 100644 --- a/api/src/main/java/org/allaymc/api/blockentity/component/BlockEntityBrewingStandBaseComponent.java +++ b/api/src/main/java/org/allaymc/api/blockentity/component/BlockEntityBrewingStandBaseComponent.java @@ -4,15 +4,45 @@ * @author IWareQ */ public interface BlockEntityBrewingStandBaseComponent extends BlockEntityBaseComponent { + /** + * Get the brew time of this brewing stand. + * + * @return the brew time of this brewing stand. + */ int getBrewTime(); + /** + * Set the brew time of this brewing stand. + * + * @param time the brew time of this brewing stand. + */ void setBrewTime(int time); + /** + * Get the fuel amount of this brewing stand. + * + * @return the fuel amount of this brewing stand. + */ int getFuelAmount(); + /** + * Set the fuel amount of this brewing stand. + * + * @param amount the fuel amount of this brewing stand. + */ void setFuelAmount(int amount); + /** + * Get the total fuel of this brewing stand. + * + * @return the total fuel of this brewing stand. + */ int getFuelTotal(); + /** + * Set the total fuel of this brewing stand. + * + * @param amount the total fuel of this brewing stand. + */ void setFuelTotal(int amount); } diff --git a/api/src/main/java/org/allaymc/api/world/Dimension.java b/api/src/main/java/org/allaymc/api/world/Dimension.java index ae321e97a..63f1ff4a8 100644 --- a/api/src/main/java/org/allaymc/api/world/Dimension.java +++ b/api/src/main/java/org/allaymc/api/world/Dimension.java @@ -886,30 +886,51 @@ default void broadcastPacket(BedrockPacket packet) { getPlayers().forEach(player -> player.sendPacket(packet)); } + /** + * @see #addSound(float, float, float, String, float) + */ default void addSound(Vector3fc pos, String sound) { addSound(pos, sound, 1); } + /** + * @see #addSound(float, float, float, String, float) + */ default void addSound(Vector3fc pos, String sound, float volume) { addSound(pos, sound, volume, 1); } + /** + * @see #addSound(float, float, float, String, float) + */ default void addSound(Vector3fc pos, String sound, float volume, float pitch) { addSound(pos.x(), pos.y(), pos.z(), sound, volume, pitch); } + /** + * @see #addSound(float, float, float, String, float) + */ default void addSound(Vector3ic pos, String sound) { addSound(pos, sound, 1); } + /** + * @see #addSound(float, float, float, String, float) + */ default void addSound(Vector3ic pos, String sound, float volume) { addSound(pos, sound, volume, 1); } + /** + * @see #addSound(float, float, float, String, float) + */ default void addSound(Vector3ic pos, String sound, float volume, float pitch) { addSound(pos.x(), pos.y(), pos.z(), sound, volume, pitch); } + /** + * @see #addSound(float, float, float, String, float) + */ default void addSound(float x, float y, float z, String sound) { addSound(x, y, z, sound, 1); }