Implemented Biometric Card Hash display.
This commit is contained in:
@@ -48,12 +48,6 @@ public class ToolBiometricCard extends AEBaseItem implements IBiometricCard
|
||||
public ToolBiometricCard()
|
||||
{
|
||||
this.setMaxStackSize( 1 );
|
||||
|
||||
if( Platform.isClient() )
|
||||
{
|
||||
// TODO - PORT ToolBiometricCardRender
|
||||
// MinecraftForgeClient.registerItemRenderer( this, new ToolBiometricCardRender() );
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -0,0 +1,24 @@
|
||||
package appeng.items.tools;
|
||||
|
||||
|
||||
import net.minecraft.client.renderer.block.model.ModelResourceLocation;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
|
||||
import appeng.bootstrap.IItemRendering;
|
||||
import appeng.bootstrap.ItemRenderingCustomizer;
|
||||
import appeng.client.render.model.BiometricCardModel;
|
||||
import appeng.core.AppEng;
|
||||
|
||||
|
||||
public class ToolBiometricCardRendering extends ItemRenderingCustomizer
|
||||
{
|
||||
|
||||
public static final ResourceLocation MODEL = new ResourceLocation( AppEng.MOD_ID, "builtin/biometric_card" );
|
||||
|
||||
@Override
|
||||
public void customize( IItemRendering rendering )
|
||||
{
|
||||
rendering.builtInModel( "models/item/builtin/biometric_card", new BiometricCardModel() );
|
||||
rendering.model( new ModelResourceLocation( MODEL, "inventory" ) ).variants( MODEL );
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user