Mirror von
https://github.com/ViaVersion/ViaVersion.git
synchronisiert 2024-12-27 08:30:09 +01:00
1.17-rc1
Dieser Commit ist enthalten in:
Ursprung
2b8c5082ed
Commit
8e7606ea1b
@ -52,7 +52,7 @@ public interface ViaAPI<T> {
|
||||
* @return API version incremented with meaningful API changes
|
||||
*/
|
||||
default int apiVersion() {
|
||||
return 2;
|
||||
return 3;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -27,23 +27,64 @@ import org.checkerframework.checker.nullness.qual.Nullable;
|
||||
|
||||
public interface Item {
|
||||
|
||||
/**
|
||||
* Returns the item identifier.
|
||||
*
|
||||
* @return item identifier
|
||||
*/
|
||||
int identifier();
|
||||
|
||||
/**
|
||||
* Sets the item identifier.
|
||||
*
|
||||
* @param identifier item identifier
|
||||
*/
|
||||
void setIdentifier(int identifier);
|
||||
|
||||
/**
|
||||
* Returns the item amount.
|
||||
*
|
||||
* @return item amount
|
||||
*/
|
||||
int amount();
|
||||
|
||||
/**
|
||||
* Returns the item amount.
|
||||
*
|
||||
* @param amount item amount
|
||||
*/
|
||||
void setAmount(int amount);
|
||||
|
||||
/**
|
||||
* Returns the item data. Always 0 for 1.13+ items.
|
||||
*
|
||||
* @return item data
|
||||
*/
|
||||
default short data() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the item data used in versions before 1.13.
|
||||
*
|
||||
* @param data item data
|
||||
* @throws UnsupportedOperationException if the item implementation does not store data
|
||||
*/
|
||||
default void setData(short data) {
|
||||
throw new UnsupportedOperationException();
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the item compound tag if present.
|
||||
*
|
||||
* @return item tag
|
||||
*/
|
||||
@Nullable CompoundTag tag();
|
||||
|
||||
/**
|
||||
* Sets the item compound tag.
|
||||
*
|
||||
* @param tag item tag
|
||||
*/
|
||||
void setTag(@Nullable CompoundTag tag);
|
||||
}
|
||||
|
@ -76,7 +76,7 @@ public class ProtocolVersion {
|
||||
public static final ProtocolVersion v1_16_2 = register(751, "1.16.2");
|
||||
public static final ProtocolVersion v1_16_3 = register(753, "1.16.3");
|
||||
public static final ProtocolVersion v1_16_4 = register(754, "1.16.4/5", new VersionRange("1.16", 4, 5));
|
||||
public static final ProtocolVersion v1_17 = register(755, 33, "1.17");
|
||||
public static final ProtocolVersion v1_17 = register(755, 34, "1.17");
|
||||
public static final ProtocolVersion unknown = register(-1, "UNKNOWN");
|
||||
|
||||
public static ProtocolVersion register(int version, String name) {
|
||||
|
@ -1,5 +1,5 @@
|
||||
# Project properties - we put these here so they can be modified without causing a recompile of the build scripts
|
||||
projectVersion=4.0.0-1.17-pre5-SNAPSHOT
|
||||
projectVersion=4.0.0-1.17-rc1-SNAPSHOT
|
||||
|
||||
# Gradle properties
|
||||
org.gradle.daemon=true
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren