Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
0223762
implement new machine trait construction for steam machines (rebased)
gustovafing Dec 7, 2025
777a2f2
port all the singleblocks (rebased
gustovafing Dec 7, 2025
ea5fe71
multi parts
gustovafing Dec 7, 2025
8a1e919
update multi controllers
gustovafing Dec 7, 2025
814b5e0
remove args on some machines
gustovafing Dec 7, 2025
55ff9c5
clear up unneeded ctor args
gustovafing Dec 7, 2025
c81571e
spotless
gustovafing Dec 7, 2025
d835e9c
remove more unneeded args
gustovafing Dec 7, 2025
34dbc03
fix large boiler logic
gustovafing Dec 11, 2025
fee778f
fix build issues
gustovafing Dec 11, 2025
78ae2c4
tear out MetaMachineBlockEntity, update all machine classes
gustovafing Dec 11, 2025
c20a096
clean up all remaining references
gustovafing Dec 11, 2025
8e476fc
fix some small sync errors
gustovafing Dec 11, 2025
09d9db3
spotless stuff, create IGregtechBlockEntity
gustovafing Dec 12, 2025
58070e2
remove mmbe usage
gustovafing Dec 19, 2025
bee9e05
fix data load issue
gustovafing Dec 19, 2025
f973024
small interface method changes
gustovafing Dec 22, 2025
d4a4c66
spotless
gustovafing Dec 25, 2025
1a34578
change workable tiered machine ctors
gustovafing Dec 25, 2025
7422200
fix simple tiered machine ctor
gustovafing Dec 26, 2025
ab29444
start docs
gustovafing Dec 27, 2025
9059427
more docs
gustovafing Dec 28, 2025
d510e8d
a
gustovafing Dec 28, 2025
e6a0e1b
add tank scaling function back
gustovafing Dec 28, 2025
2518523
fix minermachine
gustovafing Dec 28, 2025
9363d09
move some static capability stuff
gustovafing Dec 28, 2025
583acc2
io both
gustovafing Dec 28, 2025
ffb9be6
small changes based on PR review
gustovafing Dec 28, 2025
3597764
Update src/main/java/com/gregtechceu/gtceu/api/machine/MetaMachine.java
gustovafing Dec 28, 2025
8db109e
move cap stuff back to metamachine
gustovafing Dec 28, 2025
8eb9e30
remove IRedstoneSignalMachine
gustovafing Jan 2, 2026
36acd04
god class metamachine
gustovafing Jan 2, 2026
e3dd274
Update MetaMachine.java
gustovafing Jan 5, 2026
68cdb87
spotless + add missing null check
gustovafing Jan 6, 2026
eb9bbca
remove TestUtils.getMetaMachine func
gustovafing Jan 6, 2026
c44a4d5
fix hammer drop conversion
gustovafing Jan 6, 2026
8a6e98e
fix ldp again
gustovafing Jan 6, 2026
f6e1b0d
spotless
gustovafing Jan 6, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
71 changes: 71 additions & 0 deletions docs/content/Modpacks/Changes/v8.0.0.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
---
title: "Version 8.0.0"
---


# Updating from `7.4.0` to `8.0.0`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Id' say update this, but honestly we'll updaet it when 8.0.0 merges xd also, didn't a file like this exist for the sync pr?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah we can flesh all this out closer to release


## Machine Refactor

Many aspects of the machine classes have been refactored and changed in order to streamline the machine system and remove legacy and unnecessary abstraction.

### `MetaMachine` and `MetaMachineBlockEntity` merge

- The `MetaMachineBlockEntity`(MMBE) class has been removed, and `MetaMachine`(MM) is now a BlockEntity.
- Most methods and properties of MMBE have been moved onto MM.
- The `IMachineBlockEntity` interface has been removed. Use `MetaMachineBlock` directly instead.
- Many methods common to all block entities have been moved to the `IGregtechBlockEntity` interface.
- Machine instance creation functions have signature `(BlockEntityCreationInfo) -> MetaMachine` instead of `(IMachineBlockEntity) -> MetaMachine`

References to MMBE can generally be replaced with references to MM:
```java
/////// OLD
if (level.getBlockEntity(getPos()) instanceof MetaMachineBlockEntity mmbe) {
MetaMachine machine = mmbe.getMetaMachine();
...
}

////// NEW
if (level.getBlockEntity(getPos()) instanceof MetaMachine machine) {
...
}
```

The `IMachineBlockEntity holder` argument in machine constructors has been replaced with `BlockEntityCreationInfo info`:
```java
////// OLD
public MetaMachine(IMachineBlockEntity holder);
////// NEW
public MetaMachine(BlockEntityCreationInfo info);
```
A number of methods have been renamed across a number of different interfaces and classes to ensure consistency with default BlockEntity methods:
- `BlockPos getPipePos()` -> `BlockPos getBlockPos()`
- `Level getPipeLevel()` -> `Level getLevel()`
- `BlockPos getPos()` -> `BlockPos getBlockPos()`
- `BlockState getState()` -> `BlockState getBlockState()`
- `boolean isInvalid()` -> `boolean isRemoved()`
- `void markAsDirty()` -> `void markAsChanged()`

### Machine constructor and trait initialisation changes

The constructors for a large number of machines have changed in order to simply machine instance creation. Additionally, methods for trait creation have also been removed and now form part of the machine constructor.

#### **All Machines**
- Replace the first constructor argument `IMachineBlockEntity holder` with `BlockEntityCreationInfo info`
#### `TieredEnergyMachine`
- Removed `createEnergyContainer` method
- Constructor now has an optional `Supplier<NotifiableEnergyContainer>` argument
#### `WorkableTieredMachine`
- Removed `createRecipeLogic`, `createImportItemHandler`, `createExportItemHandler`, `createImportFluidHandler`, `createExportFluidHandler` methods
- Added a new constructor:
- `BlockEntityCreationInfo info`
- `int tier`
- `Supplier<RecipeLogic> recipeLogicSupplier` Recipe logic supplier, defaults to the standard `RecipeLogic` class.
- `int importSlots` Item import slots, defaults to the amount of slots in the machine's default recipe type.
- `int exportSlots` Same as above, but for item export slots.
- `int fluidImportSlots` As above, but for fluid import slots.
- `int fluidExportSlots` As above, but for fluid export slots.
- `Int2IntFunction tankScalingFunction` Fluid tank capacity scaling function.
#### `WorkableMultiblockMachine`, `WorkableElectricMultiblockMachine` and `SteamWorkableMachine`
- Removed `createRecipeLogic` method
- Constructor now has an optional `Supplier<RecipeLogic>` argument, defaults to the standard `RecipeLogic` class

This file was deleted.

Loading
Loading