Skip to content
This repository has been archived by the owner on Jan 21, 2021. It is now read-only.

Commit

Permalink
fixed module.d.ts big time
Browse files Browse the repository at this point in the history
  • Loading branch information
hb432 committed Nov 12, 2020
1 parent 60fcb33 commit ac3023b
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions module.d.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
//**/ import { obuBoundingBox, obeEntity, obiItemStack, obLocation, obuVector } from '../../../dict/classes'; /*
/**/ import { obbBlock, obuBoundingBox, obeEntity, obiItemStack, obLocation, obuVector, obeItem, obcCommandSender, obOfflinePlayer } from '../../../dict/classes'; /*
import { obbBlock, obuBoundingBox, obeEntity, obiItemStack, obLocation, obuVector, obeItem, obcCommandSender, obOfflinePlayer } from '../core/dict/classes'; //*/

type HasBoundingBox = obuBoundingBox | SerialBoundingBox | IsPhysical;
type HasItemStack = obiItemStack | SerialItemStack | IsPhysical;
type HasLocation = obLocation | SerialLocation | IsPhysical;
type HasVector = obuVector | SerialVector | HasLocation;

type isContainer = obbBlock | obeEntity | obiItemStack | SerialEntity | SerialItemStack;
type IsPhysical = obbBlock | obeEntity | SerialEntity;
type IsContainer = obbBlock | IsEntity | obiItemStack | SerialEntity | SerialItemStack;
type IsEntity = obeEntity | obeItem | obePlayer | obOfflinePlayer;
type IsPhysical = obbBlock | IsEntity | SerialEntity;

type SerialBoundingBox = { class: 'BoundingBox', min: SerialVector, max: SerialVector };
type SerialEntity = { class: 'Entity', nbt: SerialNBTTagCompound, type: string };
Expand Down Expand Up @@ -57,7 +58,8 @@ export interface Main {
parse (object: SerialLocation): obLocation;
parse (object: SerialVector): obuVector;
parse <X> (object: X): X;
/** */
/** Returns the OfflinePlayer object associated with the given name. Searches through online players first, then the
* native offline player database. Name matches are case-insensitive. */
player (name: string): obOfflinePlayer;
player (...args: any[]): void;
/** Returns a list of entities matching the given selector and context. If unspecified, selector will default to '@e'
Expand Down

0 comments on commit ac3023b

Please sign in to comment.