mirror of
https://github.com/dmulloy2/ProtocolLib.git
synced 2024-11-30 22:53:26 +01:00
Added a convenience method for boolean structure modifiers.
This commit is contained in:
parent
29709c4159
commit
17a5f59c0d
@ -175,6 +175,14 @@ public class PacketContainer implements Serializable {
|
|||||||
return structureModifier.withType(byte.class);
|
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.
|
* Retrieves a read/write structure for every short field.
|
||||||
* @return A modifier for every short field.
|
* @return A modifier for every short field.
|
||||||
|
Loading…
Reference in New Issue
Block a user