2014-11-14 12:02:52 +01:00
|
|
|
/*
|
|
|
|
* This file is part of Applied Energistics 2.
|
|
|
|
* Copyright (c) 2013 - 2014, AlgorithmX2, All rights reserved.
|
|
|
|
*
|
|
|
|
* Applied Energistics 2 is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU Lesser General Public License as published by
|
|
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* Applied Energistics 2 is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public License
|
|
|
|
* along with Applied Energistics 2. If not, see <http://www.gnu.org/licenses/lgpl>.
|
|
|
|
*/
|
|
|
|
|
2013-12-27 23:59:59 +01:00
|
|
|
package appeng.parts.reporting;
|
|
|
|
|
2015-01-03 02:53:14 +01:00
|
|
|
|
2013-12-27 23:59:59 +01:00
|
|
|
import net.minecraft.item.ItemStack;
|
2016-08-29 09:47:17 +02:00
|
|
|
import net.minecraft.util.ResourceLocation;
|
|
|
|
|
2016-12-14 22:37:10 +01:00
|
|
|
import appeng.api.parts.IPartModel;
|
2016-08-29 09:47:17 +02:00
|
|
|
import appeng.core.AppEng;
|
|
|
|
import appeng.items.parts.PartModels;
|
2016-12-14 22:37:10 +01:00
|
|
|
import appeng.parts.PartModel;
|
2015-05-27 16:54:04 +02:00
|
|
|
|
2015-01-03 02:53:14 +01:00
|
|
|
|
2015-05-27 16:54:04 +02:00
|
|
|
public class PartTerminal extends AbstractPartTerminal
|
2013-12-27 23:59:59 +01:00
|
|
|
{
|
|
|
|
|
2016-08-29 09:47:17 +02:00
|
|
|
@PartModels
|
2016-09-29 22:19:55 +02:00
|
|
|
public static final ResourceLocation MODEL_OFF = new ResourceLocation( AppEng.MOD_ID, "part/terminal_off" );
|
2016-08-29 09:47:17 +02:00
|
|
|
@PartModels
|
2016-09-29 22:19:55 +02:00
|
|
|
public static final ResourceLocation MODEL_ON = new ResourceLocation( AppEng.MOD_ID, "part/terminal_on" );
|
2016-08-29 09:47:17 +02:00
|
|
|
|
2016-12-14 22:37:10 +01:00
|
|
|
public static final IPartModel MODELS_OFF = new PartModel( MODEL_BASE, MODEL_OFF, MODEL_STATUS_OFF );
|
|
|
|
public static final IPartModel MODELS_ON = new PartModel( MODEL_BASE, MODEL_ON, MODEL_STATUS_ON );
|
|
|
|
public static final IPartModel MODELS_HAS_CHANNEL = new PartModel( MODEL_BASE, MODEL_ON, MODEL_STATUS_HAS_CHANNEL );
|
2016-08-29 09:47:17 +02:00
|
|
|
|
2015-09-30 14:24:40 +02:00
|
|
|
public PartTerminal( final ItemStack is )
|
2015-01-03 02:53:14 +01:00
|
|
|
{
|
2015-05-27 16:54:04 +02:00
|
|
|
super( is );
|
2014-02-17 01:50:25 +01:00
|
|
|
}
|
2016-08-29 09:47:17 +02:00
|
|
|
|
|
|
|
@Override
|
2016-12-14 22:37:10 +01:00
|
|
|
public IPartModel getStaticModels()
|
2016-08-29 09:47:17 +02:00
|
|
|
{
|
|
|
|
return selectModel( MODELS_OFF, MODELS_ON, MODELS_HAS_CHANNEL );
|
|
|
|
}
|
2013-12-27 23:59:59 +01:00
|
|
|
}
|