Closed Caeleron closed 2 years ago
Line 52 None of these arguments appear to ever be null when digging inside of Minecraft.
So... this is probably a good chance to talk about this, but technically because it's a Java code thing, I treat it as external code that could be unsafe. Unless it has the not null annotation on it, might be best to stick with these safer function definitions.
Work in progress. Posting this now so that people can start looking at it, since this will take a bit.
onDestroyedByPlayer
returns true, and also includes the Block's BlockState in the argument.world?.isClientSide
should always be false. In addition,world
,pos
, andneighbor
should never be null.