-
Recently Browsing
No registered users viewing this page.
-
Posts
-
By diesieben07 · Posted
Please don't use raw types. Store the Set in a field, don't create it every time. -
It looks way better. Thanks for the advice. @Override public boolean canApplyAtEnchantingTable(ItemStack stack, Enchantment enchantment) { Set e = ImmutableSet.of( Enchantments.SHARPNESS, Enchantments.LOOTING, Enchantments.FIRE_ASPECT, Enchantments.UNBREAKING, Enchantments.KNOCKBACK ); return e.contains(enchantment); }
-
I just want to say that this thread has been massively helpful to me! Thank you to all who have contributed.
-
Topics
-
Who's Online (See full list)