-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #42 from stlngds/master
2021-2022 Merge
- Loading branch information
Showing
99 changed files
with
1,849 additions
and
124 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
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 |
---|---|---|
@@ -1,4 +1,9 @@ | ||
# Sets default memory used for gradle commands. Can be overridden by user or command line properties. | ||
# This is required to provide enough memory for the Minecraft decompilation process. | ||
org.gradle.jvmargs=-Xmx3G | ||
org.gradle.daemon=false | ||
org.gradle.daemon=false | ||
|
||
minecraft_version=1.15.2 | ||
forge_version=1.15.2-31.1.60 | ||
mcp_version=20200514-1.15.1 | ||
hwyla_version=1.10.8-B72_1.15.2 |
Binary file not shown.
14 changes: 14 additions & 0 deletions
14
src/main/java/edu/uidaho/electricblocks/EBHWYLAPlugin.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,14 @@ | ||
package edu.uidaho.electricblocks; | ||
|
||
import mcp.mobius.waila.api.IRegistrar; | ||
import mcp.mobius.waila.api.IWailaPlugin; | ||
import mcp.mobius.waila.api.WailaPlugin; | ||
|
||
@WailaPlugin | ||
public class EBHWYLAPlugin implements IWailaPlugin { | ||
@Override | ||
public void register (IRegistrar hwyla) { | ||
//Each HWYLA feature (in the plugins folder) must be "declared"/referenced in ElectricBlocksMod.java | ||
ElectricBlocksMod.getFeatures().forEach(f -> f.initialize(hwyla)); | ||
} | ||
} |
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
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
34 changes: 34 additions & 0 deletions
34
src/main/java/edu/uidaho/electricblocks/blocks/BatteryBlock.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,34 @@ | ||
package edu.uidaho.electricblocks.blocks; | ||
|
||
import edu.uidaho.electricblocks.tileentities.BatteryTileEntity; | ||
import net.minecraft.block.Block; | ||
import net.minecraft.block.BlockState; | ||
import net.minecraft.block.SoundType; | ||
import net.minecraft.block.material.Material; | ||
import net.minecraft.tileentity.TileEntity; | ||
import net.minecraft.world.IBlockReader; | ||
|
||
import javax.annotation.Nullable; | ||
|
||
public class BatteryBlock extends Block { | ||
|
||
public BatteryBlock() { | ||
super(Properties.create(Material.EARTH) | ||
.hardnessAndResistance(0f) | ||
.sound(SoundType.WOOD) | ||
.slipperiness(0.6f) | ||
.harvestLevel(2) | ||
); | ||
} | ||
|
||
@Override | ||
public boolean hasTileEntity(BlockState state) { | ||
return true; | ||
} | ||
|
||
@Nullable | ||
@Override | ||
public TileEntity createTileEntity(BlockState state, IBlockReader world) { | ||
return new BatteryTileEntity(); | ||
} | ||
} |
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
Oops, something went wrong.