mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-20 12:19:46 +00:00
Get rid of all the nullable-nonnull stuff, warning huge diff
This commit is contained in:
344 files changed
+1603
-582
No files matched your search
@@ -16,6 +16,8 @@ import net.minecraft.entity.Entity;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
|
||||
import javax.annotation.Nonnull;
|
||||
|
||||
// Same as RenderSnowball, but ItemStack sensitive
|
||||
public class RenderSnowballStack<T extends Entity> extends RenderSnowball<T> {
|
||||
|
||||
@@ -26,6 +28,7 @@ public class RenderSnowballStack<T extends Entity> extends RenderSnowball<T> {
|
||||
this.stackGetter = stackGetter;
|
||||
}
|
||||
|
||||
@Nonnull
|
||||
@Override
|
||||
public ItemStack getStackToRender(T entity) {
|
||||
return stackGetter.apply(entity);
|
||||
|
||||
Reference in new issue
Block a user