-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
22 changed files
with
190 additions
and
295 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
7 changes: 7 additions & 0 deletions
7
src/main/generated/assets/oritech/blockstates/giga_storage_block.json
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,7 @@ | ||
{ | ||
"variants": { | ||
"": { | ||
"model": "oritech:block/giga_storage_block" | ||
} | ||
} | ||
} |
62 changes: 0 additions & 62 deletions
62
src/main/generated/assets/oritech/models/item/exo_helmet.json
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
7 changes: 0 additions & 7 deletions
7
src/main/generated/assets/oritech/models/item/exo_helmet_amethyst_trim.json
This file was deleted.
Oops, something went wrong.
7 changes: 0 additions & 7 deletions
7
src/main/generated/assets/oritech/models/item/exo_helmet_copper_trim.json
This file was deleted.
Oops, something went wrong.
7 changes: 0 additions & 7 deletions
7
src/main/generated/assets/oritech/models/item/exo_helmet_diamond_trim.json
This file was deleted.
Oops, something went wrong.
7 changes: 0 additions & 7 deletions
7
src/main/generated/assets/oritech/models/item/exo_helmet_emerald_trim.json
This file was deleted.
Oops, something went wrong.
7 changes: 0 additions & 7 deletions
7
src/main/generated/assets/oritech/models/item/exo_helmet_gold_trim.json
This file was deleted.
Oops, something went wrong.
7 changes: 0 additions & 7 deletions
7
src/main/generated/assets/oritech/models/item/exo_helmet_iron_trim.json
This file was deleted.
Oops, something went wrong.
7 changes: 0 additions & 7 deletions
7
src/main/generated/assets/oritech/models/item/exo_helmet_lapis_trim.json
This file was deleted.
Oops, something went wrong.
7 changes: 0 additions & 7 deletions
7
src/main/generated/assets/oritech/models/item/exo_helmet_netherite_trim.json
This file was deleted.
Oops, something went wrong.
7 changes: 0 additions & 7 deletions
7
src/main/generated/assets/oritech/models/item/exo_helmet_quartz_trim.json
This file was deleted.
Oops, something went wrong.
7 changes: 0 additions & 7 deletions
7
src/main/generated/assets/oritech/models/item/exo_helmet_redstone_trim.json
This file was deleted.
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
src/main/generated/assets/oritech/models/item/giga_storage_block.json
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,3 @@ | ||
{ | ||
"parent": "oritech:block/giga_storage_block" | ||
} |
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
71 changes: 71 additions & 0 deletions
71
...n/java/rearth/oritech/block/base/entity/ExpandableMultiblockEnergyStorageBlockEntity.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,71 @@ | ||
package rearth.oritech.block.base.entity; | ||
|
||
import net.minecraft.block.BlockState; | ||
import net.minecraft.block.entity.BlockEntityType; | ||
import net.minecraft.nbt.NbtCompound; | ||
import net.minecraft.util.math.BlockPos; | ||
import net.minecraft.util.math.Direction; | ||
import rearth.oritech.util.InventoryProvider; | ||
import rearth.oritech.util.MultiblockMachineController; | ||
import team.reborn.energy.api.EnergyStorage; | ||
|
||
import java.util.ArrayList; | ||
|
||
public abstract class ExpandableMultiblockEnergyStorageBlockEntity extends ExpandableEnergyStorageBlockEntity implements MultiblockMachineController { | ||
|
||
private final ArrayList<BlockPos> coreBlocksConnected = new ArrayList<>(); | ||
|
||
private float coreQuality = 1f; | ||
|
||
public ExpandableMultiblockEnergyStorageBlockEntity(BlockEntityType<?> type, BlockPos pos, BlockState state) { | ||
super(type, pos, state); | ||
} | ||
|
||
@Override | ||
public void writeNbt(NbtCompound nbt) { | ||
super.writeNbt(nbt); | ||
addMultiblockToNbt(nbt); | ||
} | ||
|
||
@Override | ||
public void readNbt(NbtCompound nbt) { | ||
super.readNbt(nbt); | ||
loadMultiblockNbtData(nbt); | ||
} | ||
|
||
@Override | ||
public Direction getFacingForMultiblock() { | ||
return super.getFacingForAddon(); | ||
} | ||
|
||
@Override | ||
public ArrayList<BlockPos> getConnectedCores() { | ||
return coreBlocksConnected; | ||
} | ||
|
||
@Override | ||
public void setCoreQuality(float quality) { | ||
this.coreQuality = quality; | ||
} | ||
|
||
@Override | ||
public float getCoreQuality() { | ||
return this.coreQuality; | ||
} | ||
|
||
@Override | ||
public InventoryProvider getInventoryForLink() { | ||
return null; | ||
} | ||
|
||
@Override | ||
public EnergyStorage getEnergyStorageForLink() { | ||
return energyStorage; | ||
} | ||
|
||
@Override | ||
public void playSetupAnimation() { | ||
// this block has no animation | ||
} | ||
|
||
} |
Oops, something went wrong.