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

Commit

Permalink
Bump Forge to 2125 and update MCP names
Browse files Browse the repository at this point in the history
  • Loading branch information
pahimar committed Nov 16, 2016
1 parent 5b0017a commit 120ad36
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 3 deletions.
6 changes: 3 additions & 3 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Build related properties
minecraft_version = 1.10.2
forge_version = 12.18.2.2105
mcp_mappings_version = snapshot_20160518
forge_version = 12.18.2.2125
mcp_mappings_version = snapshot_20161111
curseforge_plugin_version = 1.0.7

# Mod related properties
Expand All @@ -12,5 +12,5 @@ api_version = 1.5.0
mod_release_type = beta

# Mod dependency related properties
dep_jei_version = 3.12.7.315
dep_jei_version = 3.13.0.335
dep_waila_version = 1.7.0-B3_1.9.4
30 changes: 30 additions & 0 deletions src/main/java/com/pahimar/ee3/block/BlockInfusedStoneSlab.java
Original file line number Diff line number Diff line change
@@ -1,10 +1,40 @@
package com.pahimar.ee3.block;

import com.pahimar.ee3.block.base.BlockBase;
import net.minecraft.block.properties.PropertyDirection;
import net.minecraft.block.state.BlockStateContainer;
import net.minecraft.block.state.IBlockState;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.util.EnumFacing;
import net.minecraft.util.math.BlockPos;
import net.minecraft.world.World;

public class BlockInfusedStoneSlab extends BlockBase {

public static final PropertyDirection FACING = PropertyDirection.create("facing");

public BlockInfusedStoneSlab() {
super("infused_stone_slab");
setDefaultState(blockState.getBaseState().withProperty(FACING, EnumFacing.UP));
}

@Override
public IBlockState getStateFromMeta(int meta) {
return getDefaultState().withProperty(FACING, EnumFacing.getFront(meta & 7));
}

@Override
public int getMetaFromState(IBlockState state) {
return state.getValue(FACING).getIndex();
}

@Override
protected BlockStateContainer createBlockState() {
return new BlockStateContainer(this, FACING);
}

@Override
public IBlockState onBlockPlaced(World worldIn, BlockPos pos, EnumFacing facing, float hitX, float hitY, float hitZ, int meta, EntityLivingBase placer) {
return this.getDefaultState().withProperty(FACING, facing);
}
}

0 comments on commit 120ad36

Please sign in to comment.