A Minecraft Bedrock Addon that adds immersion to vanilla fishing feat. realistic reeling just like the fishing minigames of other popular comfort games such Stardew Valley, Animal Crossing, and Harvest Moon Series.
Instead of using isValid() to many custom entity / item / block instances that has isValid() just created a getter and setter if it's valid or not, so you just call it like if(fisher.source), instead of changing all the code with if(fisher.source || fisher.source?.isValid()). As this might can also reduce the potential try-catch blocks. Since it's ugly.
Make clientConfiguration be class instead of an object (objects are weird, you need to use JSON.parse(JSON.stringify(...))) to just deep clone a new object.
Instead of using
isValid()
to many custom entity / item / block instances that hasisValid()
just created a getter and setter if it's valid or not, so you just call it likeif(fisher.source)
, instead of changing all the code withif(fisher.source || fisher.source?.isValid())
. As this might can also reduce the potential try-catch blocks. Since it's ugly.