Skip to content

Commit

Permalink
docs: add missing javadoc
Browse files Browse the repository at this point in the history
  • Loading branch information
smartcmd committed Jan 13, 2025
1 parent 990527e commit 629ef3e
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
21 changes: 21 additions & 0 deletions api/src/main/java/org/allaymc/api/world/Dimension.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 629ef3e

Please sign in to comment.