Skip to content

Commit

Permalink
Merge pull request #15 from MinecraftMediaLibrary/persistent
Browse files Browse the repository at this point in the history
Large Changes to Plugin
  • Loading branch information
PulseBeat02 authored Oct 4, 2021
2 parents b228445 + 10f6902 commit 27340db
Show file tree
Hide file tree
Showing 164 changed files with 3,032 additions and 2,209 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@
public interface Diagnostic {

/**
* Debugs the information into the Logger class the library uses to debug information for clients.
* Debugs the information into the Logger class the library uses to debug information for
* clients.
*/
void debugInformation();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,6 @@
*/
package io.github.pulsebeat02.ezmediacore.callback;

public interface BlockHighlightCallbackDispatcher extends Callback, Locatable {}
public interface BlockHighlightCallbackDispatcher extends Callback, Locatable {

}
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,5 @@ public interface EntityCallbackDispatcher extends Callback, Locatable {
@NotNull
NamedEntityString getStringName();

@Nullable
<T> Consumer<T> modifyEntity();
@Nullable <T> Consumer<T> modifyEntity();
}
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,6 @@ public final class ChatDimension {
X16_92 = ofDimension(16, 92);
}

private ChatDimension() {}
private ChatDimension() {
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,6 @@ public final class FrameDimension {
X10_14 = ofDimension(10, 14);
}

private FrameDimension() {}
private FrameDimension() {
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -55,5 +55,6 @@ public final class PixelDimension {
X3840_2160 = ofDimension(3840, 2160);
}

private PixelDimension() {}
private PixelDimension() {
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,6 @@ public interface DitherAlgorithm {
@NotNull
ByteBuffer ditherIntoMinecraft(final int @NotNull [] buffer, final int width);

default void dither(final int @NotNull [] buffer, final int width) {}
default void dither(final int @NotNull [] buffer, final int width) {
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,6 @@ public final class ExecutorProvider {
FRAME_HANDLER = Executors.newCachedThreadPool();
}

private ExecutorProvider() {}
private ExecutorProvider() {
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,6 @@
*/
package io.github.pulsebeat02.ezmediacore.ffmpeg;

public interface AudioExtractor extends IOProvider {}
public interface AudioExtractor extends IOProvider {

}
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,6 @@ public final class FormatterProvider {
FFMPEG_TIME_FORMATTER = new SimpleDateFormat("HH:mm:ss.SSS");
}

private FormatterProvider() {}
private FormatterProvider() {
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,6 @@
import io.github.pulsebeat02.ezmediacore.dimension.Dimensional;
import io.github.pulsebeat02.ezmediacore.playlist.ResourceUrl;

public interface Avatar extends Dimensional, ResourceUrl {}
public interface Avatar extends Dimensional, ResourceUrl {

}
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,11 @@
*/
public final class AssertingRandom extends Random {

@Serial private static final long serialVersionUID = -1552213382473062718L;
/** Enable paranoid mode when assertions are enabled. */
@Serial
private static final long serialVersionUID = -1552213382473062718L;
/**
* Enable paranoid mode when assertions are enabled.
*/
private static final boolean assertionsEnabled = AssertingRandom.class.desiredAssertionStatus();

private final Random delegate;
Expand Down Expand Up @@ -162,7 +165,9 @@ public int hashCode() {
return this.delegate.hashCode();
}

/** This object will no longer be usable after this method is called. */
/**
* This object will no longer be usable after this method is called.
*/
public void destroy() {
this.valid = false;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,14 @@
* @see "http://sites.google.com/site/murmurhash/"
*/
public final class MurmurHash3 {

private MurmurHash3() {
// no instances.
}

/** Hashes a 4-byte sequence (Java int). */
/**
* Hashes a 4-byte sequence (Java int).
*/
public static int hash(int k) {
k ^= k >>> 16;
k *= 0x85ebca6b;
Expand All @@ -45,7 +48,9 @@ public static int hash(int k) {
return k;
}

/** Hashes an 8-byte sequence (Java long). */
/**
* Hashes an 8-byte sequence (Java long).
*/
public static long hash(long k) {
k ^= k >>> 33;
k *= 0xff51afd7ed558ccdL;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ public class Xoroshiro128PlusRandom extends Random {

private static final double DOUBLE_UNIT = 0x1.0p-53; // 1.0 / (1L << 53);
private static final float FLOAT_UNIT = 0x1.0p-24f; // 1.0 / (1L << 24);
@Serial private static final long serialVersionUID = -2223015498326800080L;
@Serial
private static final long serialVersionUID = -2223015498326800080L;

private long s0, s1;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,13 @@
* @author <a href="http://johannburkard.de">Johann Burkard</a>
* @version $Id: BNDM.java 6675 2015-01-17 21:02:35Z johann $
* @see <a href="http://johannburkard.de/software/stringsearch/" target="_top"> StringSearch &#8211;
* high-performance pattern matching algorithms in Java</a>
* high-performance pattern matching algorithms in Java</a>
* @see <a href="http://www.dcc.uchile.cl/~gnavarro/ps/cpm98.ps.gz" target="_top">
* http://www.dcc.uchile.cl/~gnavarro/ps/cpm98.ps.gz </a>
* http://www.dcc.uchile.cl/~gnavarro/ps/cpm98.ps.gz </a>
* @see <a href="http://www-igm.univ-mlv.fr/~raffinot/ftp/cpm98.ps.gz" target="_top">
* http://www-igm.univ-mlv.fr/~raffinot/ftp/cpm98.ps.gz </a>
* http://www-igm.univ-mlv.fr/~raffinot/ftp/cpm98.ps.gz </a>
* @see <a href="http://citeseer.ist.psu.edu/navarro98bitparallel.html" target="_top">
* http://citeseer.ist.psu.edu/navarro98bitparallel.html </a>
* http://citeseer.ist.psu.edu/navarro98bitparallel.html </a>
*/
public class BNDM extends StringSearch {

Expand All @@ -95,8 +95,8 @@ public Object processBytes(final byte @NotNull [] pattern) {

/**
* Pre-processing of the pattern. The pattern may not exceed 32 bytes in length. If it does,
* <b>only it's first 32 bytes</b> are processed which might lead to unexpected results. Returns a
* {@link CharIntMap} which is serializable.
* <b>only it's first 32 bytes</b> are processed which might lead to unexpected results. Returns
* a {@link CharIntMap} which is serializable.
*/
@Override
public Object processChars(final char @NotNull [] pattern) {
Expand All @@ -112,7 +112,9 @@ public Object processChars(final char @NotNull [] pattern) {
return b;
}

/** */
/**
*
*/
@Override
public int searchBytes(
final byte[] text,
Expand Down
Loading

0 comments on commit 27340db

Please sign in to comment.