Small fixes.

This commit is contained in:
raoulvdberge
2020-06-27 20:58:01 +02:00
parent 6a2c724519
commit 42e9a664c5
3 changed files with 5 additions and 4 deletions

View File

@@ -16,6 +16,7 @@ import net.minecraft.item.ItemStack;
import net.minecraft.util.Direction;
import net.minecraft.world.World;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
import java.util.ArrayList;
import java.util.List;
@@ -35,7 +36,7 @@ public class PortableGridBakedModel extends DelegateBakedModel {
private final LoadingCache<CacheKey, List<BakedQuad>> cache = CacheBuilder.newBuilder().build(new CacheLoader<CacheKey, List<BakedQuad>>() {
@Override
@SuppressWarnings("deprecation")
public List<BakedQuad> load(CacheKey key) {
public List<BakedQuad> load(@Nonnull CacheKey key) {
List<BakedQuad> quads = new ArrayList<>();
if (key.active) {

View File

@@ -59,7 +59,7 @@ public class TRSRBakedModel implements IBakedModel {
@Nonnull
@Override
@SuppressWarnings("deprecation")
public List<BakedQuad> getQuads(BlockState state, Direction side, Random rand) {
public List<BakedQuad> getQuads(BlockState state, Direction side, @Nonnull Random rand) {
ImmutableList.Builder<BakedQuad> quads = ImmutableList.builder();
if (side != null && side.getHorizontalIndex() > -1) {

View File

@@ -229,7 +229,7 @@ public final class RenderUtils {
IRenderTypeBuffer.Impl renderType = IRenderTypeBuffer.getImpl(Tessellator.getInstance().getBuffer());
MatrixStack textStack = new MatrixStack();
textStack.translate(0.0D, 0.0D, (double) zLevel);
textStack.translate(0.0D, 0.0D, zLevel);
Matrix4f textLocation = textStack.getLast().getMatrix();
int tooltipTop = tooltipY;
@@ -260,7 +260,7 @@ public final class RenderUtils {
// FontRenderer#drawStringWithShadow - call to func_228078_a_ (private)
MatrixStack smallTextStack = new MatrixStack();
smallTextStack.translate(0.0D, 0.0D, (double) zLevel);
smallTextStack.translate(0.0D, 0.0D, zLevel);
smallTextStack.scale(textScale, textScale, 1);
IRenderTypeBuffer.Impl lvt_7_1_ = IRenderTypeBuffer.getImpl(Tessellator.getInstance().getBuffer());