-
Notifications
You must be signed in to change notification settings - Fork 39
minor changes to blocks #63
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
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These are my thoughts on some of the high level stuff, it's up to you @GoldenStack if you want to address my comments or ask @Garrett-EMS to
blocks/src/main/java/net/minestom/vanilla/fluids/MinestomFluids.java
Outdated
Show resolved
Hide resolved
public class FluidUtils { | ||
|
||
public static Point raycastForFluid(Player player, Point startPosition, Vec direction, double maxDistance) { | ||
Point currentPosition = startPosition; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should be able to do a sweep cast here as opposed to an approximation.
IIRC it's something like boundingBox.sweep()
.
BlockIterators might also be useful.
@@ -0,0 +1,7 @@ | |||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are there these random resource json files?
You should be able to extract these from the datapack instead.
* Interface for tag providers that check if elements are tagged and can return sets of elements with specific tags | ||
* @param <T> The type of element being tagged | ||
*/ | ||
public interface TagProvider<T> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should remove this in favor of our current tags system, or merge/replace it into our current tag system.
Ideally all these tags should be fetched from the datapack.
port blocks n stuff to java from kotlin