And a few more
Dieser Commit ist enthalten in:
Ursprung
273b470140
Commit
6af2d37319
@ -338,8 +338,9 @@ public abstract class NetworkMarker {
|
|||||||
* Return an input stream without the header in the current packet.
|
* Return an input stream without the header in the current packet.
|
||||||
* <p>
|
* <p>
|
||||||
* It's safe to modify the input stream.
|
* It's safe to modify the input stream.
|
||||||
* @throws IOException If integer reading fails
|
* @param input - input stream
|
||||||
* @return An input stream without the header
|
* @return An input stream without the header
|
||||||
|
* @throws IOException If integer reading fails
|
||||||
*/
|
*/
|
||||||
protected abstract DataInputStream skipHeader(DataInputStream input) throws IOException;
|
protected abstract DataInputStream skipHeader(DataInputStream input) throws IOException;
|
||||||
|
|
||||||
|
@ -209,6 +209,8 @@ public class SafeCacheBuilder<K, V> {
|
|||||||
* incompatible with the listener, you will likely experience a
|
* incompatible with the listener, you will likely experience a
|
||||||
* {@link ClassCastException} at some <i>undefined</i> point in the future.
|
* {@link ClassCastException} at some <i>undefined</i> point in the future.
|
||||||
*
|
*
|
||||||
|
* @param <K1> Key type
|
||||||
|
* @param <V1> Value type
|
||||||
* @param listener - removal listener
|
* @param listener - removal listener
|
||||||
* @return This for chaining
|
* @return This for chaining
|
||||||
*
|
*
|
||||||
@ -307,7 +309,10 @@ public class SafeCacheBuilder<K, V> {
|
|||||||
* Returns the cache wrapped as a ConcurrentMap.
|
* Returns the cache wrapped as a ConcurrentMap.
|
||||||
* <p>
|
* <p>
|
||||||
* We can't return the direct Cache instance as it changed in Guava 13.
|
* We can't return the direct Cache instance as it changed in Guava 13.
|
||||||
* @return The cache as a map.
|
* @param <K1> Key type
|
||||||
|
* @param <V1> Value type
|
||||||
|
* @param loader - cache loader
|
||||||
|
* @return The cache as a a map.
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("unchecked")
|
@SuppressWarnings("unchecked")
|
||||||
public <K1 extends K, V1 extends V> ConcurrentMap<K1, V1> build(CacheLoader<? super K1, V1> loader) {
|
public <K1 extends K, V1 extends V> ConcurrentMap<K1, V1> build(CacheLoader<? super K1, V1> loader) {
|
||||||
|
@ -187,7 +187,7 @@ public class StreamSerializer {
|
|||||||
* @param input - the input stream.
|
* @param input - the input stream.
|
||||||
* @param maximumLength - the maximum length of the string.
|
* @param maximumLength - the maximum length of the string.
|
||||||
* @return The deserialized string.
|
* @return The deserialized string.
|
||||||
* @throws IOException
|
* @throws IOException If deserializing fails
|
||||||
*/
|
*/
|
||||||
public String deserializeString(@Nonnull DataInputStream input, int maximumLength) throws IOException {
|
public String deserializeString(@Nonnull DataInputStream input, int maximumLength) throws IOException {
|
||||||
if (input == null)
|
if (input == null)
|
||||||
|
@ -338,6 +338,7 @@ public class WrappedDataWatcher extends AbstractWrapper implements Iterable<Wrap
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Retrieve the type of a given ID, if it's allowed to be watched.
|
* Retrieve the type of a given ID, if it's allowed to be watched.
|
||||||
|
* @param id - id to get type for
|
||||||
* @return The type using a given ID, or NULL if it cannot be watched.
|
* @return The type using a given ID, or NULL if it cannot be watched.
|
||||||
* @throws FieldAccessException If we cannot initialize the reflection machinery.
|
* @throws FieldAccessException If we cannot initialize the reflection machinery.
|
||||||
*/
|
*/
|
||||||
|
@ -444,6 +444,7 @@ public class NbtFactory {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Construct a NBT list of out an array of values.
|
* Construct a NBT list of out an array of values.
|
||||||
|
* @param <T> Type
|
||||||
* @param name - name of this list.
|
* @param name - name of this list.
|
||||||
* @param elements - elements to add.
|
* @param elements - elements to add.
|
||||||
* @return The new filled NBT list.
|
* @return The new filled NBT list.
|
||||||
@ -454,6 +455,7 @@ public class NbtFactory {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Construct a NBT list of out a list of values.
|
* Construct a NBT list of out a list of values.
|
||||||
|
* @param <T> Type
|
||||||
* @param name - name of this list.
|
* @param name - name of this list.
|
||||||
* @param elements - elements to add.
|
* @param elements - elements to add.
|
||||||
* @return The new filled NBT list.
|
* @return The new filled NBT list.
|
||||||
|
@ -80,6 +80,7 @@ public class NbtBinarySerializer {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Write the content of a wrapped NBT tag to a stream.
|
* Write the content of a wrapped NBT tag to a stream.
|
||||||
|
* @param <TType> Type
|
||||||
* @param value - the NBT tag to write.
|
* @param value - the NBT tag to write.
|
||||||
* @param destination - the destination stream.
|
* @param destination - the destination stream.
|
||||||
*/
|
*/
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren