Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added missing entity #573

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/1.12/content/Vanilla/Entities/IEntityThrowable.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ It might be required for you to import the package if you encounter any issues (
IEntityThrowable implement the following interfaces and are able to call all of their methods/getters/setters as well:

- [IEntity](/Vanilla/Entities/IEntity/)
- [IProjectile](/Vanilla/Events/Events/IProjectile/)
- [IProjectile](/Vanilla/Entities/IProjectile/)

## Methods
## ZenGetter/ZenSetter
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I understand the docs are not very consistent about it, but i'd prefer if we kept it:

## Methods

## ZenGetters/ZenSetters

Like some other pages have it.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

True, i just have fast fixed the missing link, didnt check the rest.

Will look into this when i dive into 1.12.2 again.


| ZenGetter | ZenSetter | Type |
|----------------|-------------------|--------------------------------------------------------------------|
Expand Down
13 changes: 13 additions & 0 deletions docs/1.12/content/Vanilla/Entities/IProjectile.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# IProjectile

## Importing the package
It might be required for you to import the package if you encounter any issues (like casting an [Array](/AdvancedFunctions/Arrays_and_Loops/)), so better be safe than sorry and add the import.
`import crafttweaker.entity.IProjectile;`

## Extending
IProjectile is not implementing any other class.

## ZenMethods
`void shoot(double x, double y, double z, float velocity, float inaccuracy);` -> returns nothing.
Copy link
Collaborator

@Witixin1512 Witixin1512 May 17, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Syntax should be in ZenScript:
shoot(x as double, y as double ...) as void.

I find the last comment to be redundant but that's more of personal taste.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well to be fair, there is no kinda "syntax" for page buildups, so i copied that from one which was looking good readable and changed the context.

If there should be smth. like this, i recommend writting smth. like "How to edit the docs", where is pointed out how to note stuff and where to add notes/hints ;)

If you go through the you will see each version is looking different build up and even in the versions it looks different per page(also when its the same level of info, like different entities)

Sends the projectile in the direction x,y,z from its starting position with the speed from the velocity input.
The float inaccuracy can vary the position where the projectile lands.