@@ -109,46 +109,21 @@ private static Factory factory() {
109109 * Tries to apply this effect and returns whether it was successfully applied.
110110 * The definition of success is purely left up to the implementation.
111111 *
112- * @param world The world to apply effect in
113112 * @param entity The entity to apply effect to
114113 * @param stack The item to apply effect with
115114 * @return true if effect was successfully applied
116115 */
117- boolean apply (World <?, ?> world , Living entity , ItemStackLike stack );
116+ boolean apply (Living entity , ItemStackLike stack );
118117
119118 /**
120119 * Applies this effect with {@link ItemStack#empty()}.
121120 *
122- * @param world The world to apply effect in
123121 * @param entity The entity to apply effect to
124122 * @return true if effect was successfully applied
125- * @see #apply(World, Living, ItemStackLike)
126- */
127- default boolean apply (final World <?, ?> world , final Living entity ) {
128- return this .apply (world , entity , ItemStack .empty ());
129- }
130-
131- /**
132- * Applies this effect with {@link Living#world()}.
133- *
134- * @param entity The entity to apply effect to
135- * @param stack The item to apply effect with
136- * @return true if effect was successfully applied
137- * @see #apply(World, Living, ItemStackLike)
138- */
139- default boolean apply (final Living entity , final ItemStackLike stack ) {
140- return this .apply (entity .world (), entity , stack );
141- }
142-
143- /**
144- * Applies this effect with {@link Living#world()} and {@link ItemStack#empty()}.
145- *
146- * @param entity The entity to apply effect to
147- * @return true if effect was successfully applied
148- * @see #apply(World, Living, ItemStackLike)
123+ * @see #apply(Living, ItemStackLike)
149124 */
150125 default boolean apply (final Living entity ) {
151- return this .apply (entity . world (), entity , ItemStack .empty ());
126+ return this .apply (entity , ItemStack .empty ());
152127 }
153128
154129 /**
0 commit comments