From fc64c34532d35b8e910df9d0364c2c0f9e529d7c Mon Sep 17 00:00:00 2001 From: haykam821 <24855774+haykam821@users.noreply.github.com> Date: Thu, 10 Jun 2021 05:25:33 -0400 Subject: [PATCH] Document the ProjectileDispenserBehavior class (#2485) * Document the ProjectileDispenserBehavior class * Fix a grammatical issue in the documentation for the createProjectile method Co-authored-by: liach <7806504+liach@users.noreply.github.com> Co-authored-by: liach <7806504+liach@users.noreply.github.com> --- .../block/dispenser/ProjectileDispenserBehavior.mapping | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/mappings/net/minecraft/block/dispenser/ProjectileDispenserBehavior.mapping b/mappings/net/minecraft/block/dispenser/ProjectileDispenserBehavior.mapping index 8c4fb6f7e3..90d4f20e84 100644 --- a/mappings/net/minecraft/block/dispenser/ProjectileDispenserBehavior.mapping +++ b/mappings/net/minecraft/block/dispenser/ProjectileDispenserBehavior.mapping @@ -1,7 +1,16 @@ CLASS net/minecraft/class_2965 net/minecraft/block/dispenser/ProjectileDispenserBehavior + COMMENT A dispenser behavior that spawns a projectile with velocity in front of the dispenser. METHOD method_12844 createProjectile (Lnet/minecraft/class_1937;Lnet/minecraft/class_2374;Lnet/minecraft/class_1799;)Lnet/minecraft/class_1676; + COMMENT Creates the entity that will be spawned in front of the dispenser. + COMMENT + COMMENT @return the created projectile ARG 1 world + COMMENT the world the projectile will spawn in ARG 2 position + COMMENT the output location of the dispenser ARG 3 stack + COMMENT the stack that the dispenser will consume METHOD method_12845 getVariation ()F + COMMENT {@return the variation of a projectile's velocity when spawned} METHOD method_12846 getForce ()F + COMMENT {@return the force of a projectile's velocity when spawned}