Added a convenience method for boolean structure modifiers.
Dieser Commit ist enthalten in:
Ursprung
29709c4159
Commit
17a5f59c0d
@ -175,6 +175,14 @@ public class PacketContainer implements Serializable {
|
||||
return structureModifier.withType(byte.class);
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieves a read/write structure for every boolean field.
|
||||
* @return A modifier for every boolean field.
|
||||
*/
|
||||
public StructureModifier<Boolean> getBooleans() {
|
||||
return structureModifier.withType(boolean.class);
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieves a read/write structure for every short field.
|
||||
* @return A modifier for every short field.
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren