Hyph setfeature
This commit is contained in:
parent
c4e20b96ec
commit
279e94ed91
26 changed files with 26 additions and 26 deletions
|
@ -34,7 +34,7 @@ public class ToolDebugCard extends AEBaseItem
|
||||||
|
|
||||||
public ToolDebugCard() {
|
public ToolDebugCard() {
|
||||||
super( ToolDebugCard.class );
|
super( ToolDebugCard.class );
|
||||||
setfeature( EnumSet.of( AEFeature.UnsupportedDeveloperTools, AEFeature.Creative ) );
|
setFeature( EnumSet.of( AEFeature.UnsupportedDeveloperTools, AEFeature.Creative ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
public String timeMeasurement(long nanos)
|
public String timeMeasurement(long nanos)
|
||||||
|
|
|
@ -21,7 +21,7 @@ public class ToolEraser extends AEBaseItem
|
||||||
|
|
||||||
public ToolEraser() {
|
public ToolEraser() {
|
||||||
super( ToolEraser.class );
|
super( ToolEraser.class );
|
||||||
setfeature( EnumSet.of( AEFeature.UnsupportedDeveloperTools, AEFeature.Creative ) );
|
setFeature( EnumSet.of( AEFeature.UnsupportedDeveloperTools, AEFeature.Creative ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -18,7 +18,7 @@ public class ToolMeteoritePlacer extends AEBaseItem
|
||||||
|
|
||||||
public ToolMeteoritePlacer() {
|
public ToolMeteoritePlacer() {
|
||||||
super( ToolMeteoritePlacer.class );
|
super( ToolMeteoritePlacer.class );
|
||||||
setfeature( EnumSet.of( AEFeature.UnsupportedDeveloperTools, AEFeature.Creative ) );
|
setFeature( EnumSet.of( AEFeature.UnsupportedDeveloperTools, AEFeature.Creative ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -25,7 +25,7 @@ public class ToolReplicatorCard extends AEBaseItem
|
||||||
|
|
||||||
public ToolReplicatorCard() {
|
public ToolReplicatorCard() {
|
||||||
super( ToolReplicatorCard.class );
|
super( ToolReplicatorCard.class );
|
||||||
setfeature( EnumSet.of( AEFeature.UnsupportedDeveloperTools, AEFeature.Creative ) );
|
setFeature( EnumSet.of( AEFeature.UnsupportedDeveloperTools, AEFeature.Creative ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -27,7 +27,7 @@ public class AEBaseItem extends Item implements IAEFeature
|
||||||
return feature;
|
return feature;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setfeature(EnumSet<AEFeature> f)
|
public void setFeature(EnumSet<AEFeature> f)
|
||||||
{
|
{
|
||||||
feature = new AEFeatureHandler( f, this, FeatureSubname );
|
feature = new AEFeatureHandler( f, this, FeatureSubname );
|
||||||
}
|
}
|
||||||
|
|
|
@ -55,7 +55,7 @@ public class ItemMultiMaterial extends AEBaseItem implements IStorageComponent,
|
||||||
|
|
||||||
public ItemMultiMaterial() {
|
public ItemMultiMaterial() {
|
||||||
super( ItemMultiMaterial.class );
|
super( ItemMultiMaterial.class );
|
||||||
setfeature( EnumSet.of( AEFeature.Core ) );
|
setFeature( EnumSet.of( AEFeature.Core ) );
|
||||||
setHasSubtypes( true );
|
setHasSubtypes( true );
|
||||||
instance = this;
|
instance = this;
|
||||||
}
|
}
|
||||||
|
|
|
@ -69,7 +69,7 @@ public class ItemCrystalSeed extends AEBaseItem implements IGrowableCrystal
|
||||||
public ItemCrystalSeed() {
|
public ItemCrystalSeed() {
|
||||||
super( ItemCrystalSeed.class );
|
super( ItemCrystalSeed.class );
|
||||||
setHasSubtypes( true );
|
setHasSubtypes( true );
|
||||||
setfeature( EnumSet.of( AEFeature.Core ) );
|
setFeature( EnumSet.of( AEFeature.Core ) );
|
||||||
|
|
||||||
EntityRegistry.registerModEntity( EntityGrowingCrystal.class, EntityGrowingCrystal.class.getSimpleName(), EntityIds.get( EntityGrowingCrystal.class ),
|
EntityRegistry.registerModEntity( EntityGrowingCrystal.class, EntityGrowingCrystal.class.getSimpleName(), EntityIds.get( EntityGrowingCrystal.class ),
|
||||||
AppEng.instance, 16, 4, true );
|
AppEng.instance, 16, 4, true );
|
||||||
|
|
|
@ -27,7 +27,7 @@ public class ItemEncodedPattern extends AEBaseItem implements ICraftingPatternIt
|
||||||
|
|
||||||
public ItemEncodedPattern() {
|
public ItemEncodedPattern() {
|
||||||
super( ItemEncodedPattern.class );
|
super( ItemEncodedPattern.class );
|
||||||
setfeature( EnumSet.of( AEFeature.Patterns ) );
|
setFeature( EnumSet.of( AEFeature.Patterns ) );
|
||||||
setMaxStackSize( 1 );
|
setMaxStackSize( 1 );
|
||||||
if ( Platform.isClient() )
|
if ( Platform.isClient() )
|
||||||
MinecraftForgeClient.registerItemRenderer( this, new ItemEncodedPatternRenderer() );
|
MinecraftForgeClient.registerItemRenderer( this, new ItemEncodedPatternRenderer() );
|
||||||
|
|
|
@ -19,7 +19,7 @@ public class ItemPaintBall extends AEBaseItem
|
||||||
|
|
||||||
public ItemPaintBall() {
|
public ItemPaintBall() {
|
||||||
super( ItemPaintBall.class );
|
super( ItemPaintBall.class );
|
||||||
setfeature( EnumSet.of( AEFeature.PaintBalls ) );
|
setFeature( EnumSet.of( AEFeature.PaintBalls ) );
|
||||||
hasSubtypes = true;
|
hasSubtypes = true;
|
||||||
if ( Platform.isClient() )
|
if ( Platform.isClient() )
|
||||||
MinecraftForgeClient.registerItemRenderer( this, new PaintBallRender() );
|
MinecraftForgeClient.registerItemRenderer( this, new PaintBallRender() );
|
||||||
|
|
|
@ -37,7 +37,7 @@ public class ItemFacade extends AEBaseItem implements IFacadeItem, IAlphaPassIte
|
||||||
|
|
||||||
public ItemFacade() {
|
public ItemFacade() {
|
||||||
super( ItemFacade.class );
|
super( ItemFacade.class );
|
||||||
setfeature( EnumSet.of( AEFeature.Facades ) );
|
setFeature( EnumSet.of( AEFeature.Facades ) );
|
||||||
setHasSubtypes( true );
|
setHasSubtypes( true );
|
||||||
if ( Platform.isClient() )
|
if ( Platform.isClient() )
|
||||||
MinecraftForgeClient.registerItemRenderer( this, BusRenderer.instance );
|
MinecraftForgeClient.registerItemRenderer( this, BusRenderer.instance );
|
||||||
|
|
|
@ -49,7 +49,7 @@ public class ItemMultiPart extends AEBaseItem implements IPartItem, IItemGroup
|
||||||
|
|
||||||
public ItemMultiPart() {
|
public ItemMultiPart() {
|
||||||
super( ItemMultiPart.class );
|
super( ItemMultiPart.class );
|
||||||
setfeature( EnumSet.of( AEFeature.Core ) );
|
setFeature( EnumSet.of( AEFeature.Core ) );
|
||||||
AEApi.instance().partHelper().setItemBusRenderer( this );
|
AEApi.instance().partHelper().setItemBusRenderer( this );
|
||||||
setHasSubtypes( true );
|
setHasSubtypes( true );
|
||||||
instance = this;
|
instance = this;
|
||||||
|
|
|
@ -41,7 +41,7 @@ public class ItemBasicStorageCell extends AEBaseItem implements IStorageCell, II
|
||||||
|
|
||||||
public ItemBasicStorageCell(MaterialType whichCell, int Kilobytes) {
|
public ItemBasicStorageCell(MaterialType whichCell, int Kilobytes) {
|
||||||
super( ItemBasicStorageCell.class, Kilobytes + "k" );
|
super( ItemBasicStorageCell.class, Kilobytes + "k" );
|
||||||
setfeature( EnumSet.of( AEFeature.StorageCells ) );
|
setFeature( EnumSet.of( AEFeature.StorageCells ) );
|
||||||
setMaxStackSize( 1 );
|
setMaxStackSize( 1 );
|
||||||
totalBytes = Kilobytes * 1024;
|
totalBytes = Kilobytes * 1024;
|
||||||
component = whichCell;
|
component = whichCell;
|
||||||
|
|
|
@ -15,7 +15,7 @@ public class ItemCreativeStorageCell extends AEBaseItem implements ICellWorkbenc
|
||||||
|
|
||||||
public ItemCreativeStorageCell() {
|
public ItemCreativeStorageCell() {
|
||||||
super( ItemCreativeStorageCell.class );
|
super( ItemCreativeStorageCell.class );
|
||||||
setfeature( EnumSet.of( AEFeature.StorageCells, AEFeature.Creative ) );
|
setFeature( EnumSet.of( AEFeature.StorageCells, AEFeature.Creative ) );
|
||||||
setMaxStackSize( 1 );
|
setMaxStackSize( 1 );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -28,7 +28,7 @@ public class ItemSpatialStorageCell extends AEBaseItem implements ISpatialStorag
|
||||||
|
|
||||||
public ItemSpatialStorageCell(MaterialType whichCell, int spatialScale) {
|
public ItemSpatialStorageCell(MaterialType whichCell, int spatialScale) {
|
||||||
super( ItemSpatialStorageCell.class, spatialScale + "Cubed" );
|
super( ItemSpatialStorageCell.class, spatialScale + "Cubed" );
|
||||||
setfeature( EnumSet.of( AEFeature.SpatialIO ) );
|
setFeature( EnumSet.of( AEFeature.SpatialIO ) );
|
||||||
setMaxStackSize( 1 );
|
setMaxStackSize( 1 );
|
||||||
maxRegion = spatialScale;
|
maxRegion = spatialScale;
|
||||||
component = whichCell;
|
component = whichCell;
|
||||||
|
|
|
@ -28,7 +28,7 @@ public class ItemViewCell extends AEBaseItem implements ICellWorkbenchItem
|
||||||
public ItemViewCell()
|
public ItemViewCell()
|
||||||
{
|
{
|
||||||
super( ItemViewCell.class );
|
super( ItemViewCell.class );
|
||||||
setfeature( EnumSet.of( AEFeature.Core ) );
|
setFeature( EnumSet.of( AEFeature.Core ) );
|
||||||
setMaxStackSize( 1 );
|
setMaxStackSize( 1 );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -27,7 +27,7 @@ public class ToolBiometricCard extends AEBaseItem implements IBiometricCard
|
||||||
|
|
||||||
public ToolBiometricCard() {
|
public ToolBiometricCard() {
|
||||||
super( ToolBiometricCard.class );
|
super( ToolBiometricCard.class );
|
||||||
setfeature( EnumSet.of( AEFeature.Security ) );
|
setFeature( EnumSet.of( AEFeature.Security ) );
|
||||||
setMaxStackSize( 1 );
|
setMaxStackSize( 1 );
|
||||||
if ( Platform.isClient() )
|
if ( Platform.isClient() )
|
||||||
MinecraftForgeClient.registerItemRenderer( this, new ToolBiometricCardRender() );
|
MinecraftForgeClient.registerItemRenderer( this, new ToolBiometricCardRender() );
|
||||||
|
|
|
@ -21,7 +21,7 @@ public class ToolMemoryCard extends AEBaseItem implements IMemoryCard
|
||||||
|
|
||||||
public ToolMemoryCard() {
|
public ToolMemoryCard() {
|
||||||
super( ToolMemoryCard.class );
|
super( ToolMemoryCard.class );
|
||||||
setfeature( EnumSet.of( AEFeature.Core ) );
|
setFeature( EnumSet.of( AEFeature.Core ) );
|
||||||
setMaxStackSize( 1 );
|
setMaxStackSize( 1 );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -38,7 +38,7 @@ public class ToolNetworkTool extends AEBaseItem implements IGuiItem, IAEWrench,
|
||||||
|
|
||||||
public ToolNetworkTool() {
|
public ToolNetworkTool() {
|
||||||
super( ToolNetworkTool.class, null );
|
super( ToolNetworkTool.class, null );
|
||||||
setfeature( EnumSet.of( AEFeature.NetworkTool ) );
|
setFeature( EnumSet.of( AEFeature.NetworkTool ) );
|
||||||
setMaxStackSize( 1 );
|
setMaxStackSize( 1 );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -18,7 +18,7 @@ public class ToolChargedStaff extends AEBasePoweredItem
|
||||||
|
|
||||||
public ToolChargedStaff() {
|
public ToolChargedStaff() {
|
||||||
super( ToolChargedStaff.class, null );
|
super( ToolChargedStaff.class, null );
|
||||||
setfeature( EnumSet.of( AEFeature.ChargedStaff, AEFeature.PoweredTools ) );
|
setFeature( EnumSet.of( AEFeature.ChargedStaff, AEFeature.PoweredTools ) );
|
||||||
maxStoredPower = AEConfig.instance.staff_battery;
|
maxStoredPower = AEConfig.instance.staff_battery;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -75,7 +75,7 @@ public class ToolColorApplicator extends AEBasePoweredItem implements IStorageCe
|
||||||
|
|
||||||
public ToolColorApplicator() {
|
public ToolColorApplicator() {
|
||||||
super( ToolColorApplicator.class, null );
|
super( ToolColorApplicator.class, null );
|
||||||
setfeature( EnumSet.of( AEFeature.ColorApplicator, AEFeature.PoweredTools ) );
|
setFeature( EnumSet.of( AEFeature.ColorApplicator, AEFeature.PoweredTools ) );
|
||||||
maxStoredPower = AEConfig.instance.colorapplicator_battery;
|
maxStoredPower = AEConfig.instance.colorapplicator_battery;
|
||||||
if ( Platform.isClient() )
|
if ( Platform.isClient() )
|
||||||
MinecraftForgeClient.registerItemRenderer( this, new ToolColorApplicatorRender() );
|
MinecraftForgeClient.registerItemRenderer( this, new ToolColorApplicatorRender() );
|
||||||
|
|
|
@ -136,7 +136,7 @@ public class ToolEntropyManipulator extends AEBasePoweredItem implements IBlockT
|
||||||
|
|
||||||
public ToolEntropyManipulator() {
|
public ToolEntropyManipulator() {
|
||||||
super( ToolEntropyManipulator.class, null );
|
super( ToolEntropyManipulator.class, null );
|
||||||
setfeature( EnumSet.of( AEFeature.EntropyManipulator, AEFeature.PoweredTools ) );
|
setFeature( EnumSet.of( AEFeature.EntropyManipulator, AEFeature.PoweredTools ) );
|
||||||
maxStoredPower = AEConfig.instance.manipulator_battery;
|
maxStoredPower = AEConfig.instance.manipulator_battery;
|
||||||
|
|
||||||
coolDown = new Hashtable<Combo, InWorldToolOperationResult>();
|
coolDown = new Hashtable<Combo, InWorldToolOperationResult>();
|
||||||
|
|
|
@ -60,7 +60,7 @@ public class ToolMassCannon extends AEBasePoweredItem implements IStorageCell
|
||||||
|
|
||||||
public ToolMassCannon() {
|
public ToolMassCannon() {
|
||||||
super( ToolMassCannon.class, null );
|
super( ToolMassCannon.class, null );
|
||||||
setfeature( EnumSet.of( AEFeature.MatterCannon, AEFeature.PoweredTools ) );
|
setFeature( EnumSet.of( AEFeature.MatterCannon, AEFeature.PoweredTools ) );
|
||||||
maxStoredPower = AEConfig.instance.mattercannon_battery;
|
maxStoredPower = AEConfig.instance.mattercannon_battery;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -36,7 +36,7 @@ public class ToolPortableCell extends AEBasePoweredItem implements IStorageCell,
|
||||||
|
|
||||||
public ToolPortableCell() {
|
public ToolPortableCell() {
|
||||||
super( ToolPortableCell.class, null );
|
super( ToolPortableCell.class, null );
|
||||||
setfeature( EnumSet.of( AEFeature.PortableCell, AEFeature.StorageCells, AEFeature.PoweredTools ) );
|
setFeature( EnumSet.of( AEFeature.PortableCell, AEFeature.StorageCells, AEFeature.PoweredTools ) );
|
||||||
maxStoredPower = AEConfig.instance.portablecell_battery;
|
maxStoredPower = AEConfig.instance.portablecell_battery;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -28,7 +28,7 @@ public class ToolWirelessTerminal extends AEBasePoweredItem implements IWireless
|
||||||
|
|
||||||
public ToolWirelessTerminal() {
|
public ToolWirelessTerminal() {
|
||||||
super( ToolWirelessTerminal.class, null );
|
super( ToolWirelessTerminal.class, null );
|
||||||
setfeature( EnumSet.of( AEFeature.WirelessAccessTerminal, AEFeature.PoweredTools ) );
|
setFeature( EnumSet.of( AEFeature.WirelessAccessTerminal, AEFeature.PoweredTools ) );
|
||||||
maxStoredPower = AEConfig.instance.wireless_battery;
|
maxStoredPower = AEConfig.instance.wireless_battery;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -21,7 +21,7 @@ public class ToolQuartzCuttingKnife extends AEBaseItem implements IGuiItem
|
||||||
|
|
||||||
public ToolQuartzCuttingKnife(AEFeature Type) {
|
public ToolQuartzCuttingKnife(AEFeature Type) {
|
||||||
super( ToolQuartzCuttingKnife.class, Type.name() );
|
super( ToolQuartzCuttingKnife.class, Type.name() );
|
||||||
setfeature( EnumSet.of( type = Type, AEFeature.QuartzKnife ) );
|
setFeature( EnumSet.of( type = Type, AEFeature.QuartzKnife ) );
|
||||||
setMaxDamage( 50 );
|
setMaxDamage( 50 );
|
||||||
setMaxStackSize( 1 );
|
setMaxStackSize( 1 );
|
||||||
}
|
}
|
||||||
|
|
|
@ -21,7 +21,7 @@ public class ToolQuartzWrench extends AEBaseItem implements IAEWrench, IToolWren
|
||||||
|
|
||||||
public ToolQuartzWrench(AEFeature type) {
|
public ToolQuartzWrench(AEFeature type) {
|
||||||
super( ToolQuartzWrench.class, type.name() );
|
super( ToolQuartzWrench.class, type.name() );
|
||||||
setfeature( EnumSet.of( type, AEFeature.QuartzWrench ) );
|
setFeature( EnumSet.of( type, AEFeature.QuartzWrench ) );
|
||||||
setMaxStackSize( 1 );
|
setMaxStackSize( 1 );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue