Compare commits

...

8 Commits

Author SHA1 Message Date
Tom Dodd a66e6e7384 Merge branch 'pr/648' 2020-07-19 14:35:29 +01:00
Tom Dodd 677704b645 Revert "Update gradlew"
This reverts commit 66fcbc4d69.
2020-07-19 14:26:45 +01:00
Tom Dodd 056f70acec
Merge pull request #671 from WuzgXY-GitHub/master
Small Fix of CHS Translation
2020-07-19 14:25:09 +01:00
WuzgXY fc845de702
v2o.3.4 2020-07-18 16:09:24 +08:00
Tom Dodd 66fcbc4d69 Update gradlew 2020-07-17 18:39:55 +01:00
Dave Smith 01ab022146 Update gradle to 4.8.1 2020-05-03 13:04:47 -06:00
Dave Smith 05c02d766a Add bookshelf dependency; needed for GameStages 2020-05-03 13:04:47 -06:00
Dave Smith 16bb23e4f8 Add selection bounding boxes for rotor and stators 2020-05-03 12:01:35 -06:00
6 changed files with 22 additions and 7 deletions

Binary file not shown.

View File

@ -1,6 +1,5 @@
#Mon Sep 14 12:28:28 PDT 2015
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.8.1-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-2.14-bin.zip

View File

@ -15,6 +15,9 @@ import net.minecraftforge.fml.relauncher.*;
public class BlockTurbineRotorBlade extends BlockTurbinePart implements IBlockRotorBlade {
// Bounding box pulled from the rotor blade model
private final AxisAlignedBB bbox = new AxisAlignedBB(2D, 0D, 7D, 14D, 16D, 9D);
private final TurbineRotorBladeType bladeType;
public BlockTurbineRotorBlade(TurbineRotorBladeType bladeType) {
@ -52,6 +55,11 @@ public class BlockTurbineRotorBlade extends BlockTurbinePart implements IBlockRo
return NULL_AABB;
}
@Override
public AxisAlignedBB getSelectedBoundingBox(IBlockState state, World worldIn, BlockPos pos) {
return bbox;
}
@Override
public boolean onBlockActivated(World world, BlockPos pos, IBlockState state, EntityPlayer player, EnumHand hand, EnumFacing facing, float hitX, float hitY, float hitZ) {
if (player == null) {

View File

@ -15,6 +15,9 @@ import net.minecraftforge.fml.relauncher.*;
public class BlockTurbineRotorStator extends BlockTurbinePart implements IBlockRotorBlade {
// Bounding box pulled from the rotor stator model
private final AxisAlignedBB bbox = new AxisAlignedBB(7D, 0D, 2D, 9D, 16D, 14D);
public BlockTurbineRotorStator() {
super();
setDefaultState(blockState.getBaseState().withProperty(TurbineRotorBladeUtil.DIR, TurbinePartDir.Y));
@ -40,6 +43,11 @@ public class BlockTurbineRotorStator extends BlockTurbinePart implements IBlockR
return NULL_AABB;
}
@Override
public AxisAlignedBB getSelectedBoundingBox(IBlockState state, World worldIn, BlockPos pos) {
return bbox;
}
@Override
public boolean onBlockActivated(World world, BlockPos pos, IBlockState state, EntityPlayer player, EnumHand hand, EnumFacing facing, float hitX, float hitY, float hitZ) {
if (player == null) {

View File

@ -66,7 +66,7 @@
"anchor": "electrolyzer",
"type": "machines/single_machine",
"block": "nuclearcraft:electrolyzer",
"text": "使用电能分解子。"
"text": "使用电能分解子。"
},
{
"anchor": "assembler",