-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from ZXMushroom63/main
Plugin Docs for Alpha 4.0
- Loading branch information
Showing
8 changed files
with
69 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# ContainerData | ||
Represents a container. | ||
|
||
Has the following properties: | ||
- `inventoryItemStacks : [ItemStackData](ItemStackData.md)[]` | ||
|
||
And the following methods: | ||
- `getPlayerList() : [PlayerData](PlayerData.md)[]` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Data | ||
|
||
Data is the parent of all other types of data, so all types of data share the `reload()` method. Reload is used to force reload the data in-game. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# InventoryBasicData | ||
Represents a basic inventory. | ||
|
||
Has the following properties: | ||
- `inventoryContents : [ItemStackData](ItemStackData.md)[]` | ||
- `inventoryTitle : String` | ||
- `slotsCount : Integer` | ||
- `hasCustomName : Boolean` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# ItemStackData | ||
Represents an itemstack. | ||
|
||
Has the following properties: | ||
- `amount : Integer` | ||
- `animationsToGo : Integer` | ||
- `itemId : Integer` | ||
- `itemDamage : Integer` | ||
- `itemFrame : [EntityData](EntityData.md)` (If existing) | ||
- `canDestroyCacheBlock : BlockData` | ||
- `canDestroyCacheResult : Boolean` | ||
- `canPlaceOnCacheBlock : BlockData` | ||
- `canPlaceOnCacheResult : Boolean` | ||
|
||
Has the following methods: | ||
- `getItem() : [ItemData.md](ItemData.md)` | ||
- `getMaxStackSize() : Integer` | ||
- `isStackable() : Boolean` | ||
- `isItemStackDamageable() : Boolean` | ||
- `getHasSubtypes() : Boolean` | ||
- `isItemDamaged() : Boolean` | ||
- `getItemDamage() : Integer` | ||
- `getMetadata() : Integer` | ||
- `setItemDamage({meta: Integer}) : void` | ||
- `getMaxDamage() : Integer` | ||
- `copy() : [ItemStackData.md](ItemStackData.md)` | ||
- `getUnlocalizedName() : String` | ||
- `toString() : String` | ||
- `getMaxItemUseDuration() : Integer` | ||
- `getDisplayName() : String` | ||
- `setDisplayName(displayName: String) : [ItemStackData.md](ItemStackData.md)` | ||
- `clearCustomName() : void` | ||
- `hasDisplayName() : Boolean` | ||
- `hasEffect() : Boolean` | ||
- `isItemEnchantable() : Boolean` | ||
- `addEnchantment(enchId: Integer, level: Integer) : void` | ||
- `isItemEnchanted() : Boolean` | ||
- `canEditBlocks() : Boolean` | ||
- `isOnItemFrame() : Boolean` | ||
- `getRepairCost() : Integer` | ||
- `setRepairCost(cost: Integer) : void` | ||
- `setItem(itemId: Integer) : void` | ||
- `canDestroy(blockId: Integer) : Boolean` | ||
- `canPlaceOn(blockId: Integer) : Boolean` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters