Skip to content
This repository was archived by the owner on Apr 22, 2019. It is now read-only.

Commit 120ad36

Browse files
committed
Bump Forge to 2125 and update MCP names
1 parent 5b0017a commit 120ad36

File tree

2 files changed

+33
-3
lines changed

2 files changed

+33
-3
lines changed

gradle.properties

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Build related properties
22
minecraft_version = 1.10.2
3-
forge_version = 12.18.2.2105
4-
mcp_mappings_version = snapshot_20160518
3+
forge_version = 12.18.2.2125
4+
mcp_mappings_version = snapshot_20161111
55
curseforge_plugin_version = 1.0.7
66

77
# Mod related properties
@@ -12,5 +12,5 @@ api_version = 1.5.0
1212
mod_release_type = beta
1313

1414
# Mod dependency related properties
15-
dep_jei_version = 3.12.7.315
15+
dep_jei_version = 3.13.0.335
1616
dep_waila_version = 1.7.0-B3_1.9.4
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,40 @@
11
package com.pahimar.ee3.block;
22

33
import com.pahimar.ee3.block.base.BlockBase;
4+
import net.minecraft.block.properties.PropertyDirection;
5+
import net.minecraft.block.state.BlockStateContainer;
6+
import net.minecraft.block.state.IBlockState;
7+
import net.minecraft.entity.EntityLivingBase;
8+
import net.minecraft.util.EnumFacing;
9+
import net.minecraft.util.math.BlockPos;
10+
import net.minecraft.world.World;
411

512
public class BlockInfusedStoneSlab extends BlockBase {
613

14+
public static final PropertyDirection FACING = PropertyDirection.create("facing");
15+
716
public BlockInfusedStoneSlab() {
817
super("infused_stone_slab");
18+
setDefaultState(blockState.getBaseState().withProperty(FACING, EnumFacing.UP));
19+
}
20+
21+
@Override
22+
public IBlockState getStateFromMeta(int meta) {
23+
return getDefaultState().withProperty(FACING, EnumFacing.getFront(meta & 7));
24+
}
25+
26+
@Override
27+
public int getMetaFromState(IBlockState state) {
28+
return state.getValue(FACING).getIndex();
29+
}
30+
31+
@Override
32+
protected BlockStateContainer createBlockState() {
33+
return new BlockStateContainer(this, FACING);
34+
}
35+
36+
@Override
37+
public IBlockState onBlockPlaced(World worldIn, BlockPos pos, EnumFacing facing, float hitX, float hitY, float hitZ, int meta, EntityLivingBase placer) {
38+
return this.getDefaultState().withProperty(FACING, facing);
939
}
1040
}

0 commit comments

Comments
 (0)