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.WrappedDataWatcher;
|
||||
import com.comphenix.protocol.wrappers.WrappedWatchableObject;
|
||||
import com.google.common.io.Closeables;
|
||||
|
||||
import net.minecraft.server.Packet;
|
||||
|
||||
@ -196,6 +195,14 @@ public class PacketContainer implements Serializable {
|
||||
public StructureModifier<byte[]> getByteArrays() {
|
||||
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.
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren