diff --git a/README.md b/README.md
index b29bd9d78..c3fd20cd4 100644
--- a/README.md
+++ b/README.md
@@ -18,11 +18,11 @@ This mod includes textures that are more in-line with the style of Mojang's new
We also have a second resourcepack made by [3prm3](https://github.com/3prm3), it features a complete overhaul and can be enabled by enabling the `overhaul` resource pack, go check out his resource pack over here!
# Conflicts
-Currently Iris and Canvas Shaders are Incompatible with this mod,
+Currently Iris and Canvas Shaders are Incompatible with this mod,
- Iris has transparent monitors, and when a computer displays something on the monitor, the face becomes black
- Canvas... uhm
- Computer Terminals are 100% unusable and scuffed
- -
+ -
- Monitors break with either rendering option
- TBO
- Just crashes on world load
diff --git a/src/main/java/dan200/computercraft/ComputerCraftAPIImpl.java b/src/main/java/dan200/computercraft/ComputerCraftAPIImpl.java
index f7e630d02..5e8128645 100644
--- a/src/main/java/dan200/computercraft/ComputerCraftAPIImpl.java
+++ b/src/main/java/dan200/computercraft/ComputerCraftAPIImpl.java
@@ -80,11 +80,11 @@ public final class ComputerCraftAPIImpl implements IComputerCraftAPI
@Override
public String getInstalledVersion()
{
- if( this.version != null )
+ if( version != null )
{
- return this.version;
+ return version;
}
- return this.version = FabricLoader.getInstance()
+ return version = FabricLoader.getInstance()
.getModContainer( ComputerCraft.MOD_ID )
.map( x -> x.getMetadata()
.getVersion()
diff --git a/src/main/java/dan200/computercraft/api/client/TransformedModel.java b/src/main/java/dan200/computercraft/api/client/TransformedModel.java
index a62350b07..1d1cc5828 100644
--- a/src/main/java/dan200/computercraft/api/client/TransformedModel.java
+++ b/src/main/java/dan200/computercraft/api/client/TransformedModel.java
@@ -38,7 +38,7 @@ public final class TransformedModel
public TransformedModel( @Nonnull BakedModel model )
{
this.model = Objects.requireNonNull( model );
- this.matrix = AffineTransformation.identity();
+ matrix = AffineTransformation.identity();
}
public static TransformedModel of( @Nonnull ModelIdentifier location )
@@ -60,26 +60,26 @@ public final class TransformedModel
@Nonnull
public BakedModel getModel()
{
- return this.model;
+ return model;
}
@Nonnull
public AffineTransformation getMatrix()
{
- return this.matrix;
+ return matrix;
}
public void push( MatrixStack matrixStack )
{
matrixStack.push();
- AffineTransformationAccess access = (AffineTransformationAccess) (Object) this.matrix;
+ AffineTransformationAccess access = (AffineTransformationAccess) (Object) matrix;
if( access.getTranslation() != null )
{
matrixStack.translate( access.getTranslation().getX(), access.getTranslation().getY(), access.getTranslation().getZ() );
}
- matrixStack.multiply( this.matrix.getRotation2() );
+ matrixStack.multiply( matrix.getRotation2() );
if( access.getScale() != null )
{
diff --git a/src/main/java/dan200/computercraft/api/filesystem/FileAttributes.java b/src/main/java/dan200/computercraft/api/filesystem/FileAttributes.java
index ce05e8181..20db37caa 100644
--- a/src/main/java/dan200/computercraft/api/filesystem/FileAttributes.java
+++ b/src/main/java/dan200/computercraft/api/filesystem/FileAttributes.java
@@ -47,13 +47,13 @@ final class FileAttributes implements BasicFileAttributes
@Override
public boolean isRegularFile()
{
- return !this.isDirectory;
+ return !isDirectory;
}
@Override
public boolean isDirectory()
{
- return this.isDirectory;
+ return isDirectory;
}
@Override
@@ -71,7 +71,7 @@ final class FileAttributes implements BasicFileAttributes
@Override
public long size()
{
- return this.size;
+ return size;
}
@Override
diff --git a/src/main/java/dan200/computercraft/api/filesystem/FileOperationException.java b/src/main/java/dan200/computercraft/api/filesystem/FileOperationException.java
index a0d4de1aa..dc08e0268 100644
--- a/src/main/java/dan200/computercraft/api/filesystem/FileOperationException.java
+++ b/src/main/java/dan200/computercraft/api/filesystem/FileOperationException.java
@@ -31,12 +31,12 @@ public class FileOperationException extends IOException
public FileOperationException( @Nonnull String message )
{
super( Objects.requireNonNull( message, "message cannot be null" ) );
- this.filename = null;
+ filename = null;
}
@Nullable
public String getFilename()
{
- return this.filename;
+ return filename;
}
}
diff --git a/src/main/java/dan200/computercraft/api/filesystem/IMount.java b/src/main/java/dan200/computercraft/api/filesystem/IMount.java
index f767bcd5a..9634cbb57 100644
--- a/src/main/java/dan200/computercraft/api/filesystem/IMount.java
+++ b/src/main/java/dan200/computercraft/api/filesystem/IMount.java
@@ -59,11 +59,11 @@ public interface IMount
@Nonnull
default BasicFileAttributes getAttributes( @Nonnull String path ) throws IOException
{
- if( !this.exists( path ) )
+ if( !exists( path ) )
{
throw new FileOperationException( path, "No such file" );
}
- return new FileAttributes( this.isDirectory( path ), this.getSize( path ) );
+ return new FileAttributes( isDirectory( path ), getSize( path ) );
}
/**
diff --git a/src/main/java/dan200/computercraft/api/lua/IArguments.java b/src/main/java/dan200/computercraft/api/lua/IArguments.java
index 2d4d73983..5546176ca 100644
--- a/src/main/java/dan200/computercraft/api/lua/IArguments.java
+++ b/src/main/java/dan200/computercraft/api/lua/IArguments.java
@@ -30,10 +30,10 @@ public interface IArguments
default Object[] getAll()
{
- Object[] result = new Object[this.count()];
+ Object[] result = new Object[count()];
for( int i = 0; i < result.length; i++ )
{
- result[i] = this.get( i );
+ result[i] = get( i );
}
return result;
}
@@ -71,7 +71,7 @@ public interface IArguments
*/
default int getInt( int index ) throws LuaException
{
- return (int) this.getLong( index );
+ return (int) getLong( index );
}
/**
@@ -83,7 +83,7 @@ public interface IArguments
*/
default long getLong( int index ) throws LuaException
{
- Object value = this.get( index );
+ Object value = get( index );
if( !(value instanceof Number) )
{
throw LuaValues.badArgumentOf( index, "number", value );
@@ -101,7 +101,7 @@ public interface IArguments
*/
default double getFiniteDouble( int index ) throws LuaException
{
- return checkFinite( index, this.getDouble( index ) );
+ return checkFinite( index, getDouble( index ) );
}
/**
@@ -114,7 +114,7 @@ public interface IArguments
*/
default double getDouble( int index ) throws LuaException
{
- Object value = this.get( index );
+ Object value = get( index );
if( !(value instanceof Number) )
{
throw LuaValues.badArgumentOf( index, "number", value );
@@ -131,7 +131,7 @@ public interface IArguments
*/
default boolean getBoolean( int index ) throws LuaException
{
- Object value = this.get( index );
+ Object value = get( index );
if( !(value instanceof Boolean) )
{
throw LuaValues.badArgumentOf( index, "boolean", value );
@@ -149,7 +149,7 @@ public interface IArguments
@Nonnull
default ByteBuffer getBytes( int index ) throws LuaException
{
- return LuaValues.encode( this.getString( index ) );
+ return LuaValues.encode( getString( index ) );
}
/**
@@ -162,7 +162,7 @@ public interface IArguments
@Nonnull
default String getString( int index ) throws LuaException
{
- Object value = this.get( index );
+ Object value = get( index );
if( !(value instanceof String) )
{
throw LuaValues.badArgumentOf( index, "string", value );
@@ -182,7 +182,7 @@ public interface IArguments
@Nonnull
default > T getEnum( int index, Class klass ) throws LuaException
{
- return LuaValues.checkEnum( index, klass, this.getString( index ) );
+ return LuaValues.checkEnum( index, klass, getString( index ) );
}
/**
@@ -195,7 +195,7 @@ public interface IArguments
@Nonnull
default Map, ?> getTable( int index ) throws LuaException
{
- Object value = this.get( index );
+ Object value = get( index );
if( !(value instanceof Map) )
{
throw LuaValues.badArgumentOf( index, "table", value );
@@ -212,7 +212,7 @@ public interface IArguments
*/
default Optional optBytes( int index ) throws LuaException
{
- return this.optString( index ).map( LuaValues::encode );
+ return optString( index ).map( LuaValues::encode );
}
/**
@@ -224,7 +224,7 @@ public interface IArguments
*/
default Optional optString( int index ) throws LuaException
{
- Object value = this.get( index );
+ Object value = get( index );
if( value == null )
{
return Optional.empty();
@@ -248,7 +248,7 @@ public interface IArguments
@Nonnull
default > Optional optEnum( int index, Class klass ) throws LuaException
{
- Optional str = this.optString( index );
+ Optional str = optString( index );
return str.isPresent() ? Optional.of( LuaValues.checkEnum( index, klass, str.get() ) ) : Optional.empty();
}
@@ -262,7 +262,7 @@ public interface IArguments
*/
default double optDouble( int index, double def ) throws LuaException
{
- return this.optDouble( index ).orElse( def );
+ return optDouble( index ).orElse( def );
}
/**
@@ -275,7 +275,7 @@ public interface IArguments
@Nonnull
default Optional optDouble( int index ) throws LuaException
{
- Object value = this.get( index );
+ Object value = get( index );
if( value == null )
{
return Optional.empty();
@@ -297,7 +297,7 @@ public interface IArguments
*/
default int optInt( int index, int def ) throws LuaException
{
- return this.optInt( index ).orElse( def );
+ return optInt( index ).orElse( def );
}
/**
@@ -310,7 +310,7 @@ public interface IArguments
@Nonnull
default Optional optInt( int index ) throws LuaException
{
- return this.optLong( index ).map( Long::intValue );
+ return optLong( index ).map( Long::intValue );
}
/**
@@ -322,7 +322,7 @@ public interface IArguments
*/
default Optional optLong( int index ) throws LuaException
{
- Object value = this.get( index );
+ Object value = get( index );
if( value == null )
{
return Optional.empty();
@@ -345,7 +345,7 @@ public interface IArguments
*/
default long optLong( int index, long def ) throws LuaException
{
- return this.optLong( index ).orElse( def );
+ return optLong( index ).orElse( def );
}
/**
@@ -358,7 +358,7 @@ public interface IArguments
*/
default double optFiniteDouble( int index, double def ) throws LuaException
{
- return this.optFiniteDouble( index ).orElse( def );
+ return optFiniteDouble( index ).orElse( def );
}
/**
@@ -370,7 +370,7 @@ public interface IArguments
*/
default Optional optFiniteDouble( int index ) throws LuaException
{
- Optional value = this.optDouble( index );
+ Optional value = optDouble( index );
if( value.isPresent() )
{
LuaValues.checkFiniteNum( index, value.get() );
@@ -388,7 +388,7 @@ public interface IArguments
*/
default boolean optBoolean( int index, boolean def ) throws LuaException
{
- return this.optBoolean( index ).orElse( def );
+ return optBoolean( index ).orElse( def );
}
/**
@@ -400,7 +400,7 @@ public interface IArguments
*/
default Optional optBoolean( int index ) throws LuaException
{
- Object value = this.get( index );
+ Object value = get( index );
if( value == null )
{
return Optional.empty();
@@ -422,7 +422,7 @@ public interface IArguments
*/
default String optString( int index, String def ) throws LuaException
{
- return this.optString( index ).orElse( def );
+ return optString( index ).orElse( def );
}
/**
@@ -435,7 +435,7 @@ public interface IArguments
*/
default Map, ?> optTable( int index, Map