mirror of
https://github.com/Miasmusa/Shadow.git
synced 2024-11-14 19:04:54 -05:00
remove whatthefuck
This commit is contained in:
parent
9eace66715
commit
9b2d702e50
2 changed files with 1 additions and 399 deletions
File diff suppressed because one or more lines are too long
|
@ -4,17 +4,8 @@
|
|||
|
||||
package net.shadow.client.feature.command.impl;
|
||||
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.shadow.client.WhatTheFuck;
|
||||
import net.shadow.client.feature.command.Command;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.FileOutputStream;
|
||||
import java.lang.reflect.Field;
|
||||
import java.nio.charset.StandardCharsets;
|
||||
import java.util.Base64;
|
||||
import java.util.List;
|
||||
|
||||
public class Test extends Command {
|
||||
public Test() {
|
||||
super("Test", "REAL", "test");
|
||||
|
@ -22,26 +13,6 @@ public class Test extends Command {
|
|||
|
||||
@Override
|
||||
public void onExecute(String[] args) {
|
||||
WhatTheFuck.loadTags();
|
||||
try {
|
||||
File out = new File("nbt.shit");
|
||||
FileOutputStream fos = new FileOutputStream(out);
|
||||
for (Field declaredField : WhatTheFuck.class.getDeclaredFields()) {
|
||||
if (declaredField.getType().equals(List.class)) {
|
||||
declaredField.setAccessible(true);
|
||||
List<ItemStack> l = (List<ItemStack>) declaredField.get(null);
|
||||
for (ItemStack stack : l) {
|
||||
String fName = stack.getItem().toString();
|
||||
String nbt = Base64.getEncoder().encodeToString(stack.getOrCreateNbt().toString().getBytes(StandardCharsets.UTF_8));
|
||||
String p = declaredField.getName() + ";" + fName + ";" + nbt;
|
||||
fos.write((p + "\n").getBytes(StandardCharsets.UTF_8));
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
fos.close();
|
||||
} catch (Exception e) {
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
success("jooj");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue