blob: 1b86f5cfb6183a280d1b6da6f2917e7d50e29fb3 (
plain)
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
36
37
38
39
40
41
42
43
44
|
package com.dulkirfabric.mixin.render;
import com.dulkirfabric.util.GlowingEntityInterface;
import net.minecraft.entity.LivingEntity;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.Unique;
import java.awt.*;
@Mixin(LivingEntity.class)
public class LivingEntityMixin implements GlowingEntityInterface {
@Unique
private boolean shouldGlow_DulkirMod;
@Unique
private Color glowColor_DulkirMod;
@Unique
private boolean shouldESP_DulkirMod;
@Override
public void setDulkirEntityGlow(boolean shouldGlow, @NotNull Color glowColor, boolean shouldESP) {
this.shouldGlow_DulkirMod = shouldGlow;
this.glowColor_DulkirMod = glowColor;
this.shouldESP_DulkirMod = shouldESP;
}
@Override
public boolean shouldDulkirEntityGlow() {
return shouldGlow_DulkirMod;
}
@Nullable
@Override
public Color getDulkirEntityGlowColor() {
return glowColor_DulkirMod;
}
@Override
public boolean shouldDulkirEntityESP() {
return shouldESP_DulkirMod;
}
}
|