blob: 30b68ee8ff7999a43c1381ce67a5b62511099c4a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
package net.inyourwalls.frank.mixin;
import net.inyourwalls.frank.ScreenHandlerPropertyAccessor;
import net.minecraft.screen.AbstractFurnaceScreenHandler;
import net.minecraft.screen.PropertyDelegate;
import org.spongepowered.asm.mixin.Final;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.Shadow;
@Mixin(AbstractFurnaceScreenHandler.class)
public abstract class AbstractFurnaceScreenHandlerMixin implements ScreenHandlerPropertyAccessor {
@Shadow
@Final
private PropertyDelegate propertyDelegate;
@Override
public int getRemainingFuelTicks() {
return this.propertyDelegate.get(0);
}
@Override
public int getTotalFuelTicks() {
return this.propertyDelegate.get(1);
}
@Override
public int getCurrentCookingTicks() {
return this.propertyDelegate.get(2);
}
@Override
public int getTotalCookingTicks() {
return this.propertyDelegate.get(3);
}
}
|