This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package videogaming; | |
import javax.swing.*; | |
public class Game_NumberCruncher { | |
private static class MathProblem { | |
private String question; | |
private int answer; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package net.neoforged.neoforge.items; | |
import net.minecraft.world.item.ItemStack; | |
import org.jetbrains.annotations.Nullable; | |
public class SlotItemHandlerImmutable extends SlotItemHandler { | |
// Vanilla MC code modifies the stack returned by `getItem()` directly, but it | |
// calls `setChanged()` when that happens, so we just cache the returned stack, | |
// and set it when `setChanged()` is called. | |
@Nullable |