This commit is contained in:
parent
473b8c0ba3
commit
afeea22abe
@ -158,7 +158,7 @@ export class Identifier {
|
||||
/**
|
||||
* Check Equality
|
||||
* @param id Other Value
|
||||
* @returns True If Equal
|
||||
* @returns TRUE If Equal, Otherwise FALSE
|
||||
*/
|
||||
equals(id: Identifier): boolean {
|
||||
return id.getNamespace() === this.getNamespace() && id.getPath() === this.getPath();
|
||||
@ -271,7 +271,7 @@ export class Pos {
|
||||
/**
|
||||
* Check Equality
|
||||
* @param id Other Value
|
||||
* @returns True If Equal
|
||||
* @returns TRUE If Equal, Otherwise FALSE
|
||||
*/
|
||||
equals(pos: Pos): boolean {
|
||||
return pos.getX() === this.getX() && pos.getY() === this.getY() && pos.getZ() === this.getZ();
|
||||
|
@ -1,3 +1,13 @@
|
||||
/**
|
||||
* API Entry-Point
|
||||
*
|
||||
* Import With:
|
||||
* ```typescript
|
||||
* import { ... } from 'minecraft';
|
||||
* ```
|
||||
* @packageDocumentation
|
||||
*/
|
||||
|
||||
export { Identifier, ActionResult, Hand, Pos, Direction, DirectionUtil } from './core';
|
||||
export { CustomBlock, CustomBlockEntity, CustomBlockWithEntity, BlockSettings, BlockState } from './block';
|
||||
export { ItemStack, ItemSettings, CustomItem, BlockItem } from './item';
|
||||
|
@ -88,7 +88,7 @@ export class ItemStack {
|
||||
|
||||
/**
|
||||
* Is Item Damageable
|
||||
* @returns True If Item Is Damageable
|
||||
* @returns TRUE If Item Is Damageable, Otherwise FALSE
|
||||
*/
|
||||
isDamageable(): boolean {
|
||||
return useBridge('ItemStack.isDamageable', this.javaObject) as boolean;
|
||||
|
@ -22,7 +22,7 @@ export class World {
|
||||
* Set Block State
|
||||
* @param pos Position
|
||||
* @param state Block State
|
||||
* @returns True If Successful
|
||||
* @returns TRUE If Successful, Otherwise FALSE
|
||||
*/
|
||||
setBlockState(pos: Pos, state: BlockState): boolean {
|
||||
return useBridge('World.setBlockState', this.javaObject, pos.getX(), pos.getY(), pos.getZ(), state.javaObject) as boolean;
|
||||
|
@ -1,7 +1,9 @@
|
||||
{
|
||||
"name": "ScriptCraft API",
|
||||
"mode": "modules",
|
||||
"readme": "none",
|
||||
"excludeNotExported": true,
|
||||
"excludePrivate": true,
|
||||
"excludeExternals": true,
|
||||
"stripInternal": true
|
||||
}
|
Reference in New Issue
Block a user