public static enum WrapperHelper.WrapperType extends java.lang.Enum<WrapperHelper.WrapperType>
| Enum Constant and Description |
|---|
ADVANCEMENT |
BIOME |
BLOCK |
BLOCK_ENTITY |
BLOCK_SNAPSHOT |
BLOCK_STATE |
COMMAND_SENDER |
CREATIVE_MODE_TAB |
DAMAGE |
EFFECT |
EFFECT_INSTANCE |
ENTITY |
EXPLOSION |
INVENTORY |
ITEM |
ITEM_STACK |
LIVING_ENTITY |
MATERIAL |
PLAYER |
PLAYER_INVENTORY |
POSITION |
POTION |
RESOURCE_LOCATION |
SOUND_EVENT |
SOUND_INSTANCE |
STRUCTURE |
WORLD |
| Modifier and Type | Method and Description |
|---|---|
static WrapperHelper.WrapperType |
getByName(java.lang.String alias)
Returns the first WrapperType that has a name or alias matching the input or null if nothing is found
|
static WrapperHelper.WrapperType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static WrapperHelper.WrapperType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
<A extends AbstractWrapped<?>> |
wrap(@Nullable java.lang.Object toWrap) |
<A extends AbstractWrapped<?>> |
wrap(@Nullable java.lang.Object source,
@Nullable java.util.function.Function<?,?> getter) |
<A extends AbstractWrapped<?>> |
wrapCollectionGetter(@Nullable java.lang.Object source,
@Nullable java.util.function.Function<java.lang.Object,java.util.Collection<?>> getter) |
public static final WrapperHelper.WrapperType ADVANCEMENT
public static final WrapperHelper.WrapperType BIOME
public static final WrapperHelper.WrapperType BLOCK
public static final WrapperHelper.WrapperType BLOCK_ENTITY
public static final WrapperHelper.WrapperType BLOCK_SNAPSHOT
public static final WrapperHelper.WrapperType BLOCK_STATE
public static final WrapperHelper.WrapperType COMMAND_SENDER
public static final WrapperHelper.WrapperType CREATIVE_MODE_TAB
public static final WrapperHelper.WrapperType DAMAGE
public static final WrapperHelper.WrapperType EFFECT
public static final WrapperHelper.WrapperType EFFECT_INSTANCE
public static final WrapperHelper.WrapperType ENTITY
public static final WrapperHelper.WrapperType EXPLOSION
public static final WrapperHelper.WrapperType INVENTORY
public static final WrapperHelper.WrapperType ITEM
public static final WrapperHelper.WrapperType ITEM_STACK
public static final WrapperHelper.WrapperType LIVING_ENTITY
public static final WrapperHelper.WrapperType MATERIAL
public static final WrapperHelper.WrapperType PLAYER
public static final WrapperHelper.WrapperType PLAYER_INVENTORY
public static final WrapperHelper.WrapperType POTION
public static final WrapperHelper.WrapperType POSITION
public static final WrapperHelper.WrapperType RESOURCE_LOCATION
public static final WrapperHelper.WrapperType SOUND_EVENT
public static final WrapperHelper.WrapperType SOUND_INSTANCE
public static final WrapperHelper.WrapperType STRUCTURE
public static final WrapperHelper.WrapperType WORLD
public static WrapperHelper.WrapperType[] values()
for (WrapperHelper.WrapperType c : WrapperHelper.WrapperType.values()) System.out.println(c);
public static WrapperHelper.WrapperType valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic static WrapperHelper.WrapperType getByName(java.lang.String alias)
public <A extends AbstractWrapped<?>> A wrap(@Nullable @Nullable java.lang.Object toWrap)
public <A extends AbstractWrapped<?>> A wrap(@Nullable @Nullable java.lang.Object source, @Nullable @Nullable java.util.function.Function<?,?> getter)
public <A extends AbstractWrapped<?>> java.util.Collection<A> wrapCollectionGetter(@Nullable @Nullable java.lang.Object source, @Nullable @Nullable java.util.function.Function<java.lang.Object,java.util.Collection<?>> getter)