Skip to content

Commit b990b91

Browse files
committed
Update comment to say that background atlas can be null
1 parent 654b0a9 commit b990b91

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main/java/aztech/modern_industrialization/inventory/BackgroundRenderedSlot.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,16 @@
2525

2626
import aztech.modern_industrialization.MI;
2727
import net.minecraft.resources.ResourceLocation;
28+
import org.jetbrains.annotations.Nullable;
2829

2930
/**
3031
* Implement this on a slot to render its background automatically.
3132
*/
3233
public interface BackgroundRenderedSlot {
3334
/**
34-
* @return the {@link ResourceLocation} of the slot atlas texture to use for the slot background.
35+
* @return the {@link ResourceLocation} of the slot atlas texture to use for the slot background. Return null to render no background.
3536
*/
37+
@Nullable
3638
default ResourceLocation getBackgroundAtlasLocation() {
3739
return MI.id("textures/gui/container/slot_atlas.png");
3840
}

0 commit comments

Comments
 (0)