You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SimplyCmd edited this page Dec 31, 2021
·
1 revision
FeatherLib's Util file has many helper methods to ease mod development.
Util.registerSound
registerSound(ID id) does most of the work to add a sound into the game. You provide an ID and it registers and returns a SoundEvent to be used.
initArrow
Util.initArrow(Item arrow, Potion potion, Vec3d pos, float speed, Vec3d direction, PersistentProjectileEntity.PickupPermission pickupPermission, World world) is a great tool for easily spawning arrows into the world. It handles all of the unnecessary extra steps so you can create an ArrowEntity in a single line.