Add changed files
This commit is contained in:
parent
91fdf78a57
commit
468df6d07e
4 changed files with 1620 additions and 0 deletions
|
@ -0,0 +1,42 @@
|
|||
package dev.zontreck.otemod.implementation;
|
||||
|
||||
import net.minecraftforge.energy.EnergyStorage;
|
||||
|
||||
public abstract class OTEEnergy extends EnergyStorage
|
||||
{
|
||||
|
||||
public OTEEnergy(int capacity, int maxTransfer) {
|
||||
super(capacity, maxTransfer);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int extractEnergy(int max, boolean simulate)
|
||||
{
|
||||
int ex = super.extractEnergy(max, simulate);
|
||||
if(ex != 0){
|
||||
onChanged();
|
||||
}
|
||||
|
||||
return ex;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int receiveEnergy(int max, boolean simulate)
|
||||
{
|
||||
int rcv = super.receiveEnergy(max, simulate);
|
||||
if(rcv!=0){
|
||||
onChanged();
|
||||
}
|
||||
|
||||
return rcv;
|
||||
}
|
||||
|
||||
public int setEnergy(int energy){
|
||||
this.energy=energy;
|
||||
onChanged();
|
||||
return energy;
|
||||
}
|
||||
|
||||
public abstract void onChanged();
|
||||
|
||||
}
|
1578
src/main/resources/assets/otemod/models/block/item_scrubber_new.json
Normal file
1578
src/main/resources/assets/otemod/models/block/item_scrubber_new.json
Normal file
File diff suppressed because it is too large
Load diff
BIN
src/main/resources/assets/otemod/textures/item/crucible.png
Normal file
BIN
src/main/resources/assets/otemod/textures/item/crucible.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 164 B |
Binary file not shown.
After Width: | Height: | Size: 158 B |
Reference in a new issue