Removed promenade debug logging
This commit is contained in:
parent
09aca11883
commit
5cbccb1387
1 changed files with 31 additions and 34 deletions
|
@ -1,7 +1,5 @@
|
||||||
package org.betterx.betterend.mixin.common;
|
package org.betterx.betterend.mixin.common;
|
||||||
|
|
||||||
import com.mojang.serialization.Lifecycle;
|
|
||||||
import net.minecraft.core.Holder;
|
|
||||||
import net.minecraft.core.MappedRegistry;
|
import net.minecraft.core.MappedRegistry;
|
||||||
import net.minecraft.resources.ResourceKey;
|
import net.minecraft.resources.ResourceKey;
|
||||||
|
|
||||||
|
@ -9,7 +7,6 @@ import org.spongepowered.asm.mixin.Mixin;
|
||||||
import org.spongepowered.asm.mixin.injection.At;
|
import org.spongepowered.asm.mixin.injection.At;
|
||||||
import org.spongepowered.asm.mixin.injection.Inject;
|
import org.spongepowered.asm.mixin.injection.Inject;
|
||||||
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
|
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
|
||||||
import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable;
|
|
||||||
|
|
||||||
@Mixin(MappedRegistry.class)
|
@Mixin(MappedRegistry.class)
|
||||||
public class MappedRegistryMixin<T> {
|
public class MappedRegistryMixin<T> {
|
||||||
|
@ -19,35 +16,35 @@ public class MappedRegistryMixin<T> {
|
||||||
//info.cancel();
|
//info.cancel();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Inject(method = "registerMapping(ILnet/minecraft/resources/ResourceKey;Ljava/lang/Object;Lcom/mojang/serialization/Lifecycle;Z)Lnet/minecraft/core/Holder;", at = @At("HEAD"))
|
// @Inject(method = "registerMapping(ILnet/minecraft/resources/ResourceKey;Ljava/lang/Object;Lcom/mojang/serialization/Lifecycle;Z)Lnet/minecraft/core/Holder;", at = @At("HEAD"))
|
||||||
private void be_debugDummy(
|
// private void be_debugDummy(
|
||||||
int i,
|
// int i,
|
||||||
ResourceKey<T> resourceKey,
|
// ResourceKey<T> resourceKey,
|
||||||
T object,
|
// T object,
|
||||||
Lifecycle lifecycle,
|
// Lifecycle lifecycle,
|
||||||
boolean bl,
|
// boolean bl,
|
||||||
CallbackInfoReturnable<Holder<T>> cir
|
// CallbackInfoReturnable<Holder<T>> cir
|
||||||
) {
|
// ) {
|
||||||
if (resourceKey.location().getPath().equals("dark_amaranth_forest")) {
|
// if (resourceKey.location().getPath().equals("dark_amaranth_forest")) {
|
||||||
System.out.println("Promenade registers: " + resourceKey);
|
// System.out.println("Promenade registers: " + resourceKey);
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
|
//
|
||||||
@Inject(method = "getOrCreateHolderOrThrow", at = @At("HEAD"))
|
// @Inject(method = "getOrCreateHolderOrThrow", at = @At("HEAD"))
|
||||||
private void be_debugDummy2(
|
// private void be_debugDummy2(
|
||||||
ResourceKey<T> resourceKey, CallbackInfoReturnable<Holder<T>> cir
|
// ResourceKey<T> resourceKey, CallbackInfoReturnable<Holder<T>> cir
|
||||||
) {
|
// ) {
|
||||||
if (resourceKey.location().getPath().equals("dark_amaranth_forest")) {
|
// if (resourceKey.location().getPath().equals("dark_amaranth_forest")) {
|
||||||
System.out.println("Promenade registers: " + resourceKey);
|
// System.out.println("Promenade registers: " + resourceKey);
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
|
//
|
||||||
@Inject(method = "getOrCreateHolder", at = @At("HEAD"))
|
// @Inject(method = "getOrCreateHolder", at = @At("HEAD"))
|
||||||
private void be_debugDummy3(
|
// private void be_debugDummy3(
|
||||||
ResourceKey<T> resourceKey, CallbackInfoReturnable<Holder<T>> cir
|
// ResourceKey<T> resourceKey, CallbackInfoReturnable<Holder<T>> cir
|
||||||
) {
|
// ) {
|
||||||
if (resourceKey.location().getPath().equals("dark_amaranth_forest")) {
|
// if (resourceKey.location().getPath().equals("dark_amaranth_forest")) {
|
||||||
System.out.println("Promenade registers: " + resourceKey);
|
// System.out.println("Promenade registers: " + resourceKey);
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue