@@ -182,7 +182,7 @@ public CArray location(MCLocation l, boolean includeYawAndPitch) {
182182 * @param c
183183 * @param w
184184 * @param t
185- * @return
185+ * @return
186186 * @deprecated Use {@link #location(Mixed, MCWorld, Target, Environment)} instead.
187187 */
188188 @ AggressiveDeprecation (deprecationDate = "2022-04-06" , removalVersion = "3.3.7" , deprecationVersion = "3.3.6" )
@@ -197,11 +197,12 @@ public MCLocation location(Mixed c, MCWorld w, Target t) {
197197 * 4 usages: <ul> <li>(x, y, z)</li> <li>(x, y, z, world)</li> <li>(x, y, z, yaw, pitch)</li> <li>(x, y, z, world,
198198 * yaw, pitch)</li> </ul> In all cases, the pitch and yaw default to 0, and the world defaults to the specified
199199 * world. <em>More conveniently: ([world], x, y, z, [yaw, pitch])</em>
200+ *
200201 * @param c
201202 * @param w
202203 * @param t
203204 * @param env
204- * @return
205+ * @return
205206 */
206207 public MCLocation location (Mixed c , MCWorld w , Target t , Environment env ) {
207208 if (!(c .isInstanceOf (CArray .TYPE , null , env ))) {
@@ -279,7 +280,6 @@ public MCLocation location(Mixed c, MCWorld w, Target t, Environment env) {
279280 *
280281 * @param is
281282 * @param t
282- * @param env
283283 * @return An item array or CNull
284284 */
285285 public Construct item (MCItemStack is , Target t ) {
@@ -290,7 +290,7 @@ public Construct item(MCItemStack is, Target t) {
290290 CArray ret = CArray .GetAssociativeArray (t , null , null );
291291 ret .set ("name" , new CString (is .getType ().getName (), t ), t , null );
292292 ret .set ("qty" , new CInt (is .getAmount (), t ), t , null );
293- ret .set ("meta" , itemMeta (is , t , env ), t , null );
293+ ret .set ("meta" , itemMeta (is , t ), t , null );
294294 return ret ;
295295 }
296296
@@ -323,7 +323,7 @@ public MCItemStack item(Mixed i, Target t, Environment env) {
323323 * @param i
324324 * @param t
325325 * @param legacy
326- * @return
326+ * @return
327327 * @deprecated Use {@link #item(Mixed, Target, boolean, Environment)} instead.
328328 */
329329 @ AggressiveDeprecation (deprecationDate = "2022-04-06" , removalVersion = "3.3.7" , deprecationVersion = "3.3.6" )
@@ -414,9 +414,12 @@ public MCItemStack item(Mixed i, Target t, boolean legacy, Environment env) {
414414 MCMaterial newmaterial ;
415415 String entityName = spawntype .val ().toUpperCase ();
416416 newmaterial = switch (entityName ) {
417- case "MUSHROOM_COW" -> StaticLayer .GetMaterial ("MOOSHROOM_SPAWN_EGG" );
418- case "PIG_ZOMBIE" -> StaticLayer .GetMaterial ("ZOMBIE_PIGMAN_SPAWN_EGG" );
419- default -> StaticLayer .GetMaterial (entityName + "_SPAWN_EGG" );
417+ case "MUSHROOM_COW" ->
418+ StaticLayer .GetMaterial ("MOOSHROOM_SPAWN_EGG" );
419+ case "PIG_ZOMBIE" ->
420+ StaticLayer .GetMaterial ("ZOMBIE_PIGMAN_SPAWN_EGG" );
421+ default ->
422+ StaticLayer .GetMaterial (entityName + "_SPAWN_EGG" );
420423 };
421424 if (newmaterial != null ) {
422425 material = newmaterial ;
@@ -2221,6 +2224,9 @@ public CArray enchants(Map<MCEnchantment, Integer> map, Target t) {
22212224 }
22222225
22232226 /**
2227+ * @param enchantArray
2228+ * @param t
2229+ * @return
22242230 * @deprecated Use {@link #itemMeta(Mixed, MCMaterial, Target, Environment)} instead.
22252231 */
22262232 @ AggressiveDeprecation (deprecationDate = "2022-04-06" , removalVersion = "3.3.7" , deprecationVersion = "3.3.6" )
@@ -2305,7 +2311,7 @@ public CArray attributeModifier(MCAttributeModifier m, Target t) {
23052311 /**
23062312 * @param m
23072313 * @param t
2308- * @return
2314+ * @return
23092315 * @deprecated Use {@link #attributeModifier(CArray, Target, Environment)} instead.
23102316 */
23112317 @ AggressiveDeprecation (deprecationDate = "2022-04-06" , removalVersion = "3.3.7" , deprecationVersion = "3.3.6" )
@@ -2427,7 +2433,7 @@ public CArray potions(List<MCLivingEntity.MCEffect> effectList, Target t) {
24272433 /**
24282434 * @param ea
24292435 * @param t
2430- * @return
2436+ * @return
24312437 * @deprecated Use {@link #potions(CArray, Target, Environment)} instead.
24322438 */
24332439 @ AggressiveDeprecation (deprecationDate = "2022-04-06" , removalVersion = "3.3.7" , deprecationVersion = "3.3.6" )
@@ -2497,7 +2503,7 @@ public CArray potionData(MCPotionData mcpd, Target t) {
24972503 /**
24982504 * @param pd
24992505 * @param t
2500- * @return
2506+ * @return
25012507 * @deprecated Use {@link #potionData(CArray, Target, Environment)} instead.
25022508 */
25032509 @ AggressiveDeprecation (deprecationDate = "2022-04-06" , removalVersion = "3.3.7" , deprecationVersion = "3.3.6" )
@@ -2543,7 +2549,7 @@ public MCPotionData potionData(CArray pd, Target t, Environment env) {
25432549 /**
25442550 * @param potionArray
25452551 * @param t
2546- * @return
2552+ * @return
25472553 * @deprecated Use {@link #legacyPotionData(CArray, Target, Environment)} instead.
25482554 */
25492555 @ AggressiveDeprecation (deprecationDate = "2022-04-06" , removalVersion = "3.3.7" , deprecationVersion = "3.3.6" )
@@ -2621,7 +2627,7 @@ public CArray fireworkEffect(MCFireworkEffect mcfe, Target t) {
26212627 /**
26222628 * @param fe
26232629 * @param t
2624- * @return
2630+ * @return
26252631 * @deprecated Use {@link #fireworkEffect(CArray, Target, Environment)} instead.
26262632 */
26272633 @ AggressiveDeprecation (deprecationDate = "2022-04-06" , removalVersion = "3.3.7" , deprecationVersion = "3.3.6" )
@@ -2790,7 +2796,7 @@ public Construct recipe(MCRecipe r, Target t, Environment env) {
27902796 /**
27912797 * @param c
27922798 * @param t
2793- * @return
2799+ * @return
27942800 * @deprecated Use {@link #recipe(Mixed, Target, Environment)} instead.
27952801 */
27962802 @ AggressiveDeprecation (deprecationDate = "2022-04-06" , removalVersion = "3.3.7" , deprecationVersion = "3.3.6" )
@@ -2931,7 +2937,8 @@ public MCRecipe recipe(Mixed c, Target t, Environment env) {
29312937 }
29322938 return ret ;
29332939 }
2934- default -> throw new CREIllegalArgumentException ("Could not find valid recipe type." , t );
2940+ default ->
2941+ throw new CREIllegalArgumentException ("Could not find valid recipe type." , t );
29352942 }
29362943 }
29372944
@@ -3047,7 +3054,7 @@ public MCMaterial material(Mixed name, Target t) {
30473054 /**
30483055 * @param ca
30493056 * @param t
3050- * @return
3057+ * @return
30513058 * @deprecated Use {@link #blockData(CArray, Target, Environment)} instead.
30523059 */
30533060 @ AggressiveDeprecation (deprecationDate = "2022-04-06" , removalVersion = "3.3.7" , deprecationVersion = "3.3.6" )
@@ -3064,7 +3071,7 @@ public MCBlockData blockData(CArray ca, Target t, Environment env) {
30643071 * @param ca
30653072 * @param blockType
30663073 * @param t
3067- * @return
3074+ * @return
30683075 * @deprecated Use {@link #blockData(CArray, MCMaterial, Target, Environment)} instead.
30693076 */
30703077 @ AggressiveDeprecation (deprecationDate = "2022-04-06" , removalVersion = "3.3.7" , deprecationVersion = "3.3.6" )
@@ -3152,7 +3159,7 @@ private Construct blockState(String value) {
31523159 * @param l
31533160 * @param pa
31543161 * @param t
3155- * @return
3162+ * @return
31563163 * @deprecated Use {@link #particleData(MCParticle, MCLocation, CArray, Target, Environment)} instead.
31573164 */
31583165 @ AggressiveDeprecation (deprecationDate = "2022-04-06" , removalVersion = "3.3.7" , deprecationVersion = "3.3.6" )
0 commit comments