feat: small commit
This commit is contained in:
22
src/main/java/dev.toad/msg/MessageOptionValueOwned.java
Normal file
22
src/main/java/dev.toad/msg/MessageOptionValueOwned.java
Normal file
@@ -0,0 +1,22 @@
|
||||
package dev.toad.msg;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
public class MessageOptionValueOwned implements MessageOptionValue {
|
||||
public final byte[] bytes;
|
||||
|
||||
public MessageOptionValueOwned(MessageOptionValueRef ref) {
|
||||
this.bytes = ref.asBytes().clone();
|
||||
}
|
||||
|
||||
public byte[] asBytes() {
|
||||
return this.bytes;
|
||||
}
|
||||
|
||||
public String asString() {
|
||||
return new String(this.asBytes());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user