DecoratedPotBlockEntity
Importing the class
If you need to reference this type directly, like when casting an Array, or as a parameter, you will need to import it. Simply add the import at the top of the file.
import crafttweaker.api.block.entity.type.DecoratedPotBlockEntity;Extends
DecoratedPotBlockEntity extends BlockEntity.
Implements
DecoratedPotBlockEntity
implements the following interfaces:
RandomizableContainer,BlockContainerSingleItem,IAttachmentHolder,Container,Clearable,ContainerSingleItem
Undocumented Interfaces
IBlockEntityExtension
Members
BlockState of the block entity.// DecoratedPotBlockEntity.blockState as BlockStatemyDecoratedPotBlockEntity.blockState
Return Type:
BlockState
BlockState of the block entity.Returns: The BlockState of the block entity.
myDecoratedPotBlockEntity.blockState();
Return Type:
BlockState
// DecoratedPotBlockEntity.changedmyDecoratedPotBlockEntity.changed// DecoratedPotBlockEntity.changed();myDecoratedPotBlockEntity.changed();// DecoratedPotBlockEntity.clearContent();myDecoratedPotBlockEntity.clearContent();// DecoratedPotBlockEntity.containerSize as intmyDecoratedPotBlockEntity.containerSize
Return Type:
int
Returns: The amount of slots this Container has.
// DecoratedPotBlockEntity.containerSize() as int;myDecoratedPotBlockEntity.containerSize();
Return Type:
int
myDecoratedPotBlockEntity.countItem(myItem);Parameters:
item: ItemDefinition Type: ItemDefinition
Return Type:
int
myDecoratedPotBlockEntity.countStack(myIItemStack);Parameters:
item: IItemStack Type: IItemStack
Return Type:
int
// DecoratedPotBlockEntity.decorations as PotDecorationsmyDecoratedPotBlockEntity.decorations
Return Type:
PotDecorations
Returns: The decorations used by the faces of the pot.
myDecoratedPotBlockEntity.decorations();
Return Type:
PotDecorations
myDecoratedPotBlockEntity.getAttachmentData<T>(myAttachmentType);Parameters:
type: AttachmentType<T> Type: AttachmentType<T>
Return Type:
T
myDecoratedPotBlockEntity.getAttachmentData<T>(mySupplier);Parameters:
type: Supplier<AttachmentType<T>> Type: Supplier<AttachmentType<T>>
Return Type:
T
Returns: The BlockEntity that holds the container.
myDecoratedPotBlockEntity.getContainerBlockEntity();
Return Type:
BlockEntity
Returns: A new decorated pot item with a copy of the pots decorations.
myDecoratedPotBlockEntity.getPotAsItem();
Return Type:
ItemStack
myDecoratedPotBlockEntity.hasAnyOf(mySet);Parameters:
items: Set<ItemDefinition> Type: Set<ItemDefinition>
Return Type:
bool
myDecoratedPotBlockEntity.hasAttachmentData<T>(myAttachmentType);Parameters:
type: AttachmentType<T> Type: AttachmentType<T>
Return Type:
bool
myDecoratedPotBlockEntity.hasAttachmentData<T>(mySupplier);Parameters:
type: Supplier<AttachmentType<T>> Type: Supplier<AttachmentType<T>>
Return Type:
bool
// DecoratedPotBlockEntity.hasLevel as boolmyDecoratedPotBlockEntity.hasLevel
Return Type:
bool
Returns: Whether the block entity has a level.
// DecoratedPotBlockEntity.hasLevel() as bool;myDecoratedPotBlockEntity.hasLevel();
Return Type:
bool
// DecoratedPotBlockEntity.isEmpty as boolmyDecoratedPotBlockEntity.isEmpty
Return Type:
bool
Returns: True if empty. False otherwise.
// DecoratedPotBlockEntity.isEmpty() as bool;myDecoratedPotBlockEntity.isEmpty();
Return Type:
bool
// DecoratedPotBlockEntity.lootSeed as longmyDecoratedPotBlockEntity.lootSeed
Return Type:
long
// DecoratedPotBlockEntity.lootSeed = (seed as long);myDecoratedPotBlockEntity.lootSeed = myLong;Parameters:
seed: long Type: long
- The seed for the loot table to use. Returns: The seed used by the loot table.
// DecoratedPotBlockEntity.lootSeed() as long;myDecoratedPotBlockEntity.lootSeed();
Return Type:
long
// DecoratedPotBlockEntity.lootSeed(seed as long);myDecoratedPotBlockEntity.lootSeed(myLong);Parameters:
seed: long Type: long
- The seed for the loot table to use. myDecoratedPotBlockEntity.lootTable
Return Type:
ResourceKey<LootTable>
myDecoratedPotBlockEntity.lootTable = myResourceKey;Parameters:
lootTable: ResourceKey<LootTable> Type: ResourceKey<LootTable>
- The new loot table for the container to use. Returns: The loot table used by the container.
myDecoratedPotBlockEntity.lootTable();
Return Type:
ResourceKey<LootTable>
myDecoratedPotBlockEntity.lootTable(myResourceKey);Parameters:
lootTable: ResourceKey<LootTable> Type: ResourceKey<LootTable>
- The new loot table for the container to use. // DecoratedPotBlockEntity.maxStackSize as intmyDecoratedPotBlockEntity.maxStackSize
Return Type:
int
// DecoratedPotBlockEntity.maxStackSize() as int;myDecoratedPotBlockEntity.maxStackSize();
Return Type:
int
ResourceLocation of the block entity type.// DecoratedPotBlockEntity.registryName as ResourceLocationmyDecoratedPotBlockEntity.registryName
Return Type:
ResourceLocation
ResourceLocation of the block entity type.Returns: The ResourceLocation of the block entity type.
myDecoratedPotBlockEntity.registryName();
Return Type:
ResourceLocation
myDecoratedPotBlockEntity.setAttachmentData<T>(myAttachmentType, myT);Parameters:
type: AttachmentType<T> Type: AttachmentType<T> data: T Type: T
Return Type:
T?
// DecoratedPotBlockEntity.setAttachmentData<T>(type as Supplier<AttachmentType<T>>, data as T) as T?;myDecoratedPotBlockEntity.setAttachmentData<T>(mySupplier, myT);Parameters:
type: Supplier<AttachmentType<T>> Type: Supplier<AttachmentType<T>> data: T Type: T
Return Type:
T?
myDecoratedPotBlockEntity.setLootTable(myResourceKey, myLong);Parameters:
lootTable: ResourceKey<LootTable> Type: ResourceKey<LootTable>
- The new loot table for the container to use. seed: long Type: long
- The seed for the loot table to use. myDecoratedPotBlockEntity.setLootTable(myResourceLocation);Parameters:
myDecoratedPotBlockEntity.setLootTable(myResourceLocation, myLong);Parameters:
seed: long Type: long
- The seed for the loot table to use. Returns: The item that was split from the contained item.
myDecoratedPotBlockEntity.splitTheItem(myInt);Parameters:
amount: int Type: int
- The maximum amount of the item to split off from the contained item.
Return Type:
ItemStack
Returns: Whether the player can still access the container.
myDecoratedPotBlockEntity.stillValid(myPlayer);
Return Type:
bool