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 distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.8.1-bin.zip
zipStoreBase=GRADLE_USER_HOME zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-2.14-bin.zip

2
gradlew vendored
View File

@ -169,4 +169,4 @@ if [ "$(uname)" = "Darwin" ] && [ "$HOME" = "$PWD" ]; then
cd "$(dirname "$0")" cd "$(dirname "$0")"
fi fi
exec "$JAVACMD" "$@" exec "$JAVACMD" "$@"

View File

@ -14,7 +14,10 @@ import net.minecraft.world.*;
import net.minecraftforge.fml.relauncher.*; import net.minecraftforge.fml.relauncher.*;
public class BlockTurbineRotorBlade extends BlockTurbinePart implements IBlockRotorBlade { 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; private final TurbineRotorBladeType bladeType;
public BlockTurbineRotorBlade(TurbineRotorBladeType bladeType) { public BlockTurbineRotorBlade(TurbineRotorBladeType bladeType) {
@ -51,7 +54,12 @@ public class BlockTurbineRotorBlade extends BlockTurbinePart implements IBlockRo
public AxisAlignedBB getCollisionBoundingBox(IBlockState blockState, IBlockAccess worldIn, BlockPos pos) { public AxisAlignedBB getCollisionBoundingBox(IBlockState blockState, IBlockAccess worldIn, BlockPos pos) {
return NULL_AABB; return NULL_AABB;
} }
@Override
public AxisAlignedBB getSelectedBoundingBox(IBlockState state, World worldIn, BlockPos pos) {
return bbox;
}
@Override @Override
public boolean onBlockActivated(World world, BlockPos pos, IBlockState state, EntityPlayer player, EnumHand hand, EnumFacing facing, float hitX, float hitY, float hitZ) { public boolean onBlockActivated(World world, BlockPos pos, IBlockState state, EntityPlayer player, EnumHand hand, EnumFacing facing, float hitX, float hitY, float hitZ) {
if (player == null) { if (player == null) {

View File

@ -14,6 +14,9 @@ import net.minecraft.world.*;
import net.minecraftforge.fml.relauncher.*; import net.minecraftforge.fml.relauncher.*;
public class BlockTurbineRotorStator extends BlockTurbinePart implements IBlockRotorBlade { 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() { public BlockTurbineRotorStator() {
super(); super();
@ -39,7 +42,12 @@ public class BlockTurbineRotorStator extends BlockTurbinePart implements IBlockR
public AxisAlignedBB getCollisionBoundingBox(IBlockState blockState, IBlockAccess worldIn, BlockPos pos) { public AxisAlignedBB getCollisionBoundingBox(IBlockState blockState, IBlockAccess worldIn, BlockPos pos) {
return NULL_AABB; return NULL_AABB;
} }
@Override
public AxisAlignedBB getSelectedBoundingBox(IBlockState state, World worldIn, BlockPos pos) {
return bbox;
}
@Override @Override
public boolean onBlockActivated(World world, BlockPos pos, IBlockState state, EntityPlayer player, EnumHand hand, EnumFacing facing, float hitX, float hitY, float hitZ) { public boolean onBlockActivated(World world, BlockPos pos, IBlockState state, EntityPlayer player, EnumHand hand, EnumFacing facing, float hitX, float hitY, float hitZ) {
if (player == null) { if (player == null) {

View File

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