diff options
| author | shedaniel <daniel@shedaniel.me> | 2020-03-18 00:35:36 +0800 |
|---|---|---|
| committer | shedaniel <daniel@shedaniel.me> | 2020-03-18 00:35:36 +0800 |
| commit | 550fe32e612801daa99493aa0bade083f3330133 (patch) | |
| tree | 7825027dd8933d542a831e2bda6626c63f4cd8db /src/main/java/me/shedaniel/rei/plugin | |
| parent | 9e990de7685960391d78ca2cca0ff68bebe1a8cd (diff) | |
| download | RoughlyEnoughItems-550fe32e612801daa99493aa0bade083f3330133.tar.gz RoughlyEnoughItems-550fe32e612801daa99493aa0bade083f3330133.tar.bz2 RoughlyEnoughItems-550fe32e612801daa99493aa0bade083f3330133.zip | |
4.0.14: Better widgets system
Signed-off-by: shedaniel <daniel@shedaniel.me>
Diffstat (limited to 'src/main/java/me/shedaniel/rei/plugin')
| -rw-r--r-- | src/main/java/me/shedaniel/rei/plugin/beacon/DefaultBeaconBaseCategory.java | 2 | ||||
| -rw-r--r-- | src/main/java/me/shedaniel/rei/plugin/information/DefaultInformationCategory.java | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/src/main/java/me/shedaniel/rei/plugin/beacon/DefaultBeaconBaseCategory.java b/src/main/java/me/shedaniel/rei/plugin/beacon/DefaultBeaconBaseCategory.java index 2b30fc79e..756eff168 100644 --- a/src/main/java/me/shedaniel/rei/plugin/beacon/DefaultBeaconBaseCategory.java +++ b/src/main/java/me/shedaniel/rei/plugin/beacon/DefaultBeaconBaseCategory.java @@ -49,6 +49,7 @@ import net.minecraft.client.render.VertexFormats; import net.minecraft.client.resource.language.I18n; import net.minecraft.util.Identifier; import net.minecraft.util.math.MathHelper; +import org.jetbrains.annotations.NotNull; import java.util.List; @@ -160,6 +161,7 @@ public class DefaultBeaconBaseCategory implements RecipeCategory<DefaultBeaconBa return MathHelper.ceil(widgets.size() / 8f) * 18; } + @NotNull @Override public me.shedaniel.math.api.Rectangle getBounds() { return bounds; diff --git a/src/main/java/me/shedaniel/rei/plugin/information/DefaultInformationCategory.java b/src/main/java/me/shedaniel/rei/plugin/information/DefaultInformationCategory.java index 8d8cf036a..047f4d2ac 100644 --- a/src/main/java/me/shedaniel/rei/plugin/information/DefaultInformationCategory.java +++ b/src/main/java/me/shedaniel/rei/plugin/information/DefaultInformationCategory.java @@ -52,6 +52,7 @@ import net.minecraft.client.util.math.Matrix4f; import net.minecraft.text.Text; import net.minecraft.util.Identifier; import net.minecraft.util.math.MathHelper; +import org.jetbrains.annotations.NotNull; import java.util.Collections; import java.util.List; @@ -193,6 +194,7 @@ public class DefaultInformationCategory implements RecipeCategory<DefaultInforma return i; } + @NotNull @Override public me.shedaniel.math.api.Rectangle getBounds() { return bounds; |
