Archiviert
13
0

Add a convenience retriever for integer array fields.

Dieser Commit ist enthalten in:
Kristian S. Stangeland 2012-12-04 00:18:33 +01:00
Ursprung 300111b850
Commit 98a9377384

Datei anzeigen

@ -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>