Skip to content

Commit

Permalink
Apply suggestions from @LambdAurora
Browse files Browse the repository at this point in the history
Co-authored-by: LambdAurora <aurora42lambda@gmail.com>
  • Loading branch information
OroArmor and LambdAurora committed Oct 23, 2021
1 parent d191d2b commit 8cab880
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public final class QuiltItemGroup extends ItemGroup {
private @Nullable ItemStack icon;
private final @Nullable Consumer<List<ItemStack>> stacksForDisplay;

private QuiltItemGroup(int index, String id, @NotNull Supplier<ItemStack> iconSupplier, @Nullable Consumer<List<ItemStack>> stacksForDisplay) {
private QuiltItemGroup(int index, String id, Supplier<ItemStack> iconSupplier, @Nullable Consumer<List<ItemStack>> stacksForDisplay) {
super(index, id);
this.iconSupplier = iconSupplier;
this.stacksForDisplay = stacksForDisplay;
Expand All @@ -66,7 +66,7 @@ public void setIcon(ItemStack icon) {

@Override
public ItemStack createIcon() {
ItemStack supplierIcon = iconSupplier.get();
ItemStack supplierIcon = this.iconSupplier.get();
if (!supplierIcon.isEmpty()) {
return supplierIcon;
} else if (icon == null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

package org.quiltmc.qsl.itemgroup.impl;

@ApiStatus.Internal
public interface CreativeGuiExtensions {
void qsl$nextPage();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

package org.quiltmc.qsl.itemgroup.impl;

@ApiStatus.Internal
public interface ItemGroupExtensions {
void qsl$expandArray();
}
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
import net.minecraft.text.TranslatableText;
import net.minecraft.util.Identifier;

@ApiStatus.Internal
public final class QuiltCreativePlayerInventoryScreenWidgets {
private static final Identifier BUTTON_TEXTURE = new Identifier("qsl_items_item_group", "textures/gui/creative_buttons.png");
public static final Set<ItemGroup> ALWAYS_SHOWN_GROUPS = new HashSet<>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
import net.fabricmc.api.ModInitializer;

public class ItemGroupTest implements ModInitializer {
public static final String MOD_ID = "qsl_items_item_group_testmod";
public static final String NAMESPACE = "qsl_items_item_group_testmod";
// Adds an item group with all items in it
private static final ItemGroup SUPPLIER_ITEM_GROUP = QuiltItemGroup.builder(new Identifier(MOD_ID, "test_supplied_group"))
.icon(() -> new ItemStack(Items.STONE))
Expand Down

0 comments on commit 8cab880

Please sign in to comment.