mirror of
https://github.com/refactorinqq/SLC-1.8.9.git
synced 2024-11-10 08:31:32 +01:00
TNT Timer
This commit is contained in:
parent
f43788cda5
commit
e29cdc2a84
@ -0,0 +1,19 @@
|
||||
package net.silentclient.client.mixin.mixins;
|
||||
|
||||
import net.minecraft.client.renderer.entity.RenderTNTPrimed;
|
||||
import net.minecraft.entity.item.EntityTNTPrimed;
|
||||
import net.silentclient.client.Client;
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
import org.spongepowered.asm.mixin.injection.At;
|
||||
import org.spongepowered.asm.mixin.injection.Inject;
|
||||
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
|
||||
|
||||
@Mixin(RenderTNTPrimed.class)
|
||||
public class RenderTNTPrimedMixin {
|
||||
@Inject(method = "doRender(Lnet/minecraft/entity/item/EntityTNTPrimed;DDDFF)V", at = @At("HEAD"))
|
||||
public void tntTimer(EntityTNTPrimed entity, double x, double y, double z, float entityYaw, float partialTicks, CallbackInfo ci) {
|
||||
if(Client.getInstance().getModInstances().getTntTimerMod().isEnabled()) {
|
||||
Client.getInstance().getModInstances().getTntTimerMod().doRender((RenderTNTPrimed) (Object) this, entity, x, y, z, partialTicks);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user