This repository has been archived by the owner on Feb 3, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Affehund
committed
Mar 7, 2019
1 parent
4731f65
commit 48c5f47
Showing
119 changed files
with
1,134 additions
and
94 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
src/main/java/com/affehund/airplanes/block/AluminumBlock.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package com.affehund.airplanes.block; | ||
|
||
import com.affehund.airplanes.init.AirplanesTabs; | ||
import net.minecraft.block.Block; | ||
import net.minecraft.block.SoundType; | ||
import net.minecraft.block.material.Material; | ||
|
||
public class AluminumBlock extends Block { | ||
public AluminumBlock() { | ||
super(Material.IRON); | ||
setCreativeTab(AirplanesTabs.tab); | ||
setHardness(2.5F); | ||
setResistance(100F); | ||
setSoundType(SoundType.METAL); | ||
setHarvestLevel("pickaxe", 2); | ||
setLightLevel(0.0F); | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
src/main/java/com/affehund/airplanes/block/AluminumCoil.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package com.affehund.airplanes.block; | ||
|
||
import com.affehund.airplanes.init.AirplanesTabs; | ||
import net.minecraft.block.Block; | ||
import net.minecraft.block.SoundType; | ||
import net.minecraft.block.material.Material; | ||
|
||
public class AluminumCoil extends Block { | ||
public AluminumCoil() { | ||
super(Material.IRON); | ||
setCreativeTab(AirplanesTabs.tab); | ||
setHardness(2.5F); | ||
setResistance(100F); | ||
setSoundType(SoundType.METAL); | ||
setHarvestLevel("pickaxe", 2); | ||
setLightLevel(0.0F); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
56 changes: 56 additions & 0 deletions
56
src/main/java/com/affehund/airplanes/block/CombustionEngine.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
package com.affehund.airplanes.block; | ||
|
||
|
||
import javax.annotation.Nullable; | ||
|
||
import com.affehund.airplanes.init.AirplanesTabs; | ||
import com.affehund.airplanes.tileentity.TileEntityCombustionEngine; | ||
|
||
import net.minecraft.block.*; | ||
import net.minecraft.block.material.Material; | ||
import net.minecraft.block.properties.PropertyDirection; | ||
import net.minecraft.block.state.*; | ||
import net.minecraft.entity.EntityLivingBase; | ||
import net.minecraft.tileentity.TileEntity; | ||
import net.minecraft.util.*; | ||
import net.minecraft.util.math.BlockPos; | ||
import net.minecraft.world.*; | ||
|
||
|
||
public class CombustionEngine extends Block implements ITileEntityProvider { | ||
|
||
|
||
public static final PropertyDirection FACING = PropertyDirection.create("facing"); | ||
|
||
public CombustionEngine() { | ||
super(Material.ROCK); | ||
setCreativeTab(AirplanesTabs.tab); | ||
setDefaultState(getDefaultState().withProperty(FACING, EnumFacing.NORTH)); | ||
} | ||
|
||
@Nullable | ||
@Override | ||
public TileEntity createNewTileEntity(World worldIn, int meta) { | ||
return new TileEntityCombustionEngine(); | ||
} | ||
|
||
@Override | ||
public IBlockState getStateForPlacement(World world, BlockPos pos, EnumFacing facing, float hitX, float hitY, float hitZ, int meta, EntityLivingBase placer, EnumHand hand) { | ||
return getDefaultState().withProperty(FACING, EnumFacing.getDirectionFromEntityLiving(pos, placer)); | ||
} | ||
|
||
@Override | ||
public int getMetaFromState(IBlockState state) { | ||
return state.getValue(FACING).getIndex(); | ||
} | ||
|
||
@Override | ||
public IBlockState getStateFromMeta(int meta) { | ||
return getDefaultState().withProperty(FACING, EnumFacing.getFront(meta)); | ||
} | ||
|
||
@Override | ||
protected BlockStateContainer createBlockState() { | ||
return new BlockStateContainer(this, FACING); | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
src/main/java/com/affehund/airplanes/block/CopperBlock.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package com.affehund.airplanes.block; | ||
|
||
import com.affehund.airplanes.init.AirplanesTabs; | ||
import net.minecraft.block.Block; | ||
import net.minecraft.block.SoundType; | ||
import net.minecraft.block.material.Material; | ||
|
||
public class CopperBlock extends Block { | ||
public CopperBlock() { | ||
super(Material.IRON); | ||
setCreativeTab(AirplanesTabs.tab); | ||
setHardness(2.5F); | ||
setResistance(100F); | ||
setSoundType(SoundType.METAL); | ||
setHarvestLevel("pickaxe", 2); | ||
setLightLevel(0.0F); | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
src/main/java/com/affehund/airplanes/block/CopperCoil.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package com.affehund.airplanes.block; | ||
|
||
import com.affehund.airplanes.init.AirplanesTabs; | ||
import net.minecraft.block.Block; | ||
import net.minecraft.block.SoundType; | ||
import net.minecraft.block.material.Material; | ||
|
||
public class CopperCoil extends Block { | ||
public CopperCoil() { | ||
super(Material.IRON); | ||
setCreativeTab(AirplanesTabs.tab); | ||
setHardness(2.5F); | ||
setResistance(100F); | ||
setSoundType(SoundType.METAL); | ||
setHarvestLevel("pickaxe", 2); | ||
setLightLevel(0.0F); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package com.affehund.airplanes.block; | ||
|
||
import com.affehund.airplanes.init.AirplanesTabs; | ||
import net.minecraft.block.Block; | ||
import net.minecraft.block.SoundType; | ||
import net.minecraft.block.material.Material; | ||
|
||
public class GoldCoil extends Block { | ||
public GoldCoil() { | ||
super(Material.IRON); | ||
setCreativeTab(AirplanesTabs.tab); | ||
setHardness(2.5F); | ||
setResistance(100F); | ||
setSoundType(SoundType.METAL); | ||
setHarvestLevel("pickaxe", 2); | ||
setLightLevel(0.0F); | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
src/main/java/com/affehund/airplanes/block/MachineBlock.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package com.affehund.airplanes.block; | ||
|
||
import com.affehund.airplanes.init.AirplanesTabs; | ||
import net.minecraft.block.Block; | ||
import net.minecraft.block.SoundType; | ||
import net.minecraft.block.material.Material; | ||
|
||
|
||
public class MachineBlock extends Block { | ||
public MachineBlock() { | ||
super(Material.IRON); | ||
setCreativeTab(AirplanesTabs.tab); | ||
setHardness(2.5F); | ||
setResistance(100F); | ||
setSoundType(SoundType.STONE); | ||
setHarvestLevel("pickaxe", 2); | ||
setLightLevel(0.0F); | ||
} | ||
} |
10 changes: 2 additions & 8 deletions
10
src/main/java/com/affehund/airplanes/block/PartsBuilder.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
src/main/java/com/affehund/airplanes/block/SteelBlock.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package com.affehund.airplanes.block; | ||
|
||
import com.affehund.airplanes.init.AirplanesTabs; | ||
import net.minecraft.block.Block; | ||
import net.minecraft.block.SoundType; | ||
import net.minecraft.block.material.Material; | ||
|
||
public class SteelBlock extends Block { | ||
public SteelBlock() { | ||
super(Material.IRON); | ||
setCreativeTab(AirplanesTabs.tab); | ||
setHardness(2.5F); | ||
setResistance(100F); | ||
setSoundType(SoundType.METAL); | ||
setHarvestLevel("pickaxe", 2); | ||
setLightLevel(0.0F); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package com.affehund.airplanes.block; | ||
|
||
import com.affehund.airplanes.init.AirplanesTabs; | ||
import net.minecraft.block.Block; | ||
import net.minecraft.block.SoundType; | ||
import net.minecraft.block.material.Material; | ||
|
||
public class TinBlock extends Block { | ||
public TinBlock() { | ||
super(Material.IRON); | ||
setCreativeTab(AirplanesTabs.tab); | ||
setHardness(2.5F); | ||
setResistance(100F); | ||
setSoundType(SoundType.METAL); | ||
setHarvestLevel("pickaxe", 2); | ||
setLightLevel(0.0F); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package com.affehund.airplanes.block; | ||
|
||
import com.affehund.airplanes.init.AirplanesTabs; | ||
import net.minecraft.block.Block; | ||
import net.minecraft.block.SoundType; | ||
import net.minecraft.block.material.Material; | ||
|
||
public class TinOre extends Block { | ||
public TinOre() { | ||
super(Material.IRON); | ||
setCreativeTab(AirplanesTabs.tab); | ||
setHardness(2.5F); | ||
setResistance(100F); | ||
setSoundType(SoundType.STONE); | ||
setHarvestLevel("pickaxe", 2); | ||
setLightLevel(0.0F); | ||
} | ||
} |
Oops, something went wrong.