@@ -109,46 +109,21 @@ private static Factory factory() {
109
109
* Tries to apply this effect and returns whether it was successfully applied.
110
110
* The definition of success is purely left up to the implementation.
111
111
*
112
- * @param world The world to apply effect in
113
112
* @param entity The entity to apply effect to
114
113
* @param stack The item to apply effect with
115
114
* @return true if effect was successfully applied
116
115
*/
117
- boolean apply (World <?, ?> world , Living entity , ItemStackLike stack );
116
+ boolean apply (Living entity , ItemStackLike stack );
118
117
119
118
/**
120
119
* Applies this effect with {@link ItemStack#empty()}.
121
120
*
122
- * @param world The world to apply effect in
123
121
* @param entity The entity to apply effect to
124
122
* @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)
149
124
*/
150
125
default boolean apply (final Living entity ) {
151
- return this .apply (entity . world (), entity , ItemStack .empty ());
126
+ return this .apply (entity , ItemStack .empty ());
152
127
}
153
128
154
129
/**
0 commit comments