Package | Description |
---|---|
de.tr7zw.changeme.nbtapi | |
de.tr7zw.changeme.nbtapi.wrapper |
Modifier and Type | Method and Description |
---|---|
static <X extends NBTProxy> |
NBT.modify(org.bukkit.block.BlockState blockState,
Class<X> wrapper,
Consumer<X> consumer)
It takes an block entity and a function to modify the entity via the proxy
|
static <T,X extends NBTProxy> |
NBT.modify(org.bukkit.block.BlockState blockState,
Class<X> wrapper,
Function<X,T> function)
It takes an block entity and a function to modify the entity via the proxy
|
static <X extends NBTProxy> |
NBT.modify(org.bukkit.entity.Entity entity,
Class<X> wrapper,
Consumer<X> consumer)
It takes an entity and a function to modify the entity via the proxy
|
static <T,X extends NBTProxy> |
NBT.modify(org.bukkit.entity.Entity entity,
Class<X> wrapper,
Function<X,T> function)
It takes an entity and a function to modify the entity via the proxy
|
static <X extends NBTProxy> |
NBT.modify(org.bukkit.inventory.ItemStack item,
Class<X> wrapper,
Consumer<X> consumer)
It takes an ItemStack, applies a function to its NBT wrapped in a proxy.
|
static <T,X extends NBTProxy> |
NBT.modify(org.bukkit.inventory.ItemStack item,
Class<X> wrapper,
Function<X,T> function)
It takes an ItemStack, applies a function to its NBT wrapped in a proxy, and
returns the result of the function
|
static <T extends NBTProxy> |
NBT.readNbt(org.bukkit.block.BlockState blockState,
Class<T> wrapper)
Create a read only proxy class for NBT, given an annotated interface.
|
static <T extends NBTProxy> |
NBT.readNbt(org.bukkit.entity.Entity entity,
Class<T> wrapper)
Create a read only proxy class for NBT, given an annotated interface.
|
static <T extends NBTProxy> |
NBT.readNbt(org.bukkit.inventory.ItemStack item,
Class<T> wrapper)
Create a read only proxy class for NBT, given an annotated interface.
|
Modifier and Type | Class and Description |
---|---|
class |
ProxyBuilder<T extends NBTProxy> |
interface |
ProxyList<T extends NBTProxy> |
Copyright © 2015–2024 tr7zw. All rights reserved.