Add a convenience retriever for integer array fields.
Dieser Commit ist enthalten in:
Ursprung
300111b850
Commit
98a9377384
@ -43,7 +43,6 @@ import com.comphenix.protocol.wrappers.BukkitConverters;
|
|||||||
import com.comphenix.protocol.wrappers.ChunkPosition;
|
import com.comphenix.protocol.wrappers.ChunkPosition;
|
||||||
import com.comphenix.protocol.wrappers.WrappedDataWatcher;
|
import com.comphenix.protocol.wrappers.WrappedDataWatcher;
|
||||||
import com.comphenix.protocol.wrappers.WrappedWatchableObject;
|
import com.comphenix.protocol.wrappers.WrappedWatchableObject;
|
||||||
import com.google.common.io.Closeables;
|
|
||||||
|
|
||||||
import net.minecraft.server.Packet;
|
import net.minecraft.server.Packet;
|
||||||
|
|
||||||
@ -197,6 +196,14 @@ public class PacketContainer implements Serializable {
|
|||||||
return structureModifier.withType(byte[].class);
|
return structureModifier.withType(byte[].class);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Retrieves a read/write structure for every int array field.
|
||||||
|
* @return A modifier for every int array field.
|
||||||
|
*/
|
||||||
|
public StructureModifier<int[]> getIntegerArrays() {
|
||||||
|
return structureModifier.withType(int[].class);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Retrieves a read/write structure for ItemStack.
|
* Retrieves a read/write structure for ItemStack.
|
||||||
* <p>
|
* <p>
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren