public class XPFEntity extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
XPFEntity.XPFEntityBuilder<C extends XPFEntity,B extends XPFEntity.XPFEntityBuilder<C,B>> |
| Modifier | Constructor and Description |
|---|---|
|
XPFEntity()
Default constructor.
|
|
XPFEntity(Map<String,Object> customData)
Constructor.
|
protected |
XPFEntity(XPFEntity.XPFEntityBuilder<?,?> b) |
| Modifier and Type | Method and Description |
|---|---|
static XPFEntity.XPFEntityBuilder<?,?> |
builder() |
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
@NonNull Map<String,Object> |
getCustomData() |
<T> T |
getCustomDataValue(String key,
Class<T> type)
Retrieves a custom data value by key and casts it to the specified type.
|
int |
hashCode() |
String |
toString() |
public XPFEntity()
public XPFEntity(Map<String,Object> customData)
customData - custom dataprotected XPFEntity(XPFEntity.XPFEntityBuilder<?,?> b)
public <T> T getCustomDataValue(String key, Class<T> type)
T - the return typekey - the custom data keytype - the expected type of the valueClassCastException - if the value cannot be cast to the specified typepublic static XPFEntity.XPFEntityBuilder<?,?> builder()
protected boolean canEqual(Object other)
Copyright © 2026. All rights reserved.