95 lines
2.6 KiB
Java
95 lines
2.6 KiB
Java
package me.TheBukor.SkStuff.util;
|
|
|
|
import java.io.File;
|
|
|
|
import org.bukkit.Location;
|
|
import org.bukkit.block.Block;
|
|
import org.bukkit.entity.Entity;
|
|
import org.bukkit.inventory.ItemStack;
|
|
|
|
public interface NMSInterface {
|
|
|
|
public Object getNBTTag(Object compound, String tag);
|
|
|
|
public void setNBTTag(Object compound, String tag, Object toSet);
|
|
|
|
public void removeNBTTag(Object compound, String tag);
|
|
|
|
public byte getTypeId(Object nbtBase);
|
|
|
|
public Object getNBTTagValue(Object compound, String tag, byte typeId);
|
|
|
|
public void addToCompound(Object compound, Object toAdd);
|
|
|
|
public void removeFromCompound(Object compound, String ... toRemove);
|
|
|
|
public Object parseRawNBT(String rawNBT);
|
|
|
|
public Object[] getContents(Object nbtList);
|
|
|
|
public void addToList(Object nbtList, Object toAdd);
|
|
|
|
public void removeFromList(Object nbtList, int index);
|
|
|
|
public void setIndex(Object nbtList, int index, Object toSet);
|
|
|
|
public Object getIndex(Object nbtList, int index);
|
|
|
|
public void clearPathfinderGoals(Entity entity);
|
|
|
|
public void removePathfinderGoal(Object entity, Class<?> goalClass, boolean isTargetSelector);
|
|
|
|
public void addPathfinderGoal(Object entity, int priority, Object goal, boolean isTargetSelector);
|
|
|
|
public void registerCompoundClassInfo();
|
|
|
|
public void registerNBTListClassInfo();
|
|
|
|
public Object getEntityNBT(Entity entity);
|
|
|
|
public Object getTileNBT(Block block);
|
|
|
|
public Object getItemNBT(ItemStack itemStack);
|
|
|
|
public void setEntityNBT(Entity entity, Object newCompound);
|
|
|
|
public void setTileNBT(Block block, Object newCompound);
|
|
|
|
public ItemStack getItemWithNBT(ItemStack itemStack, Object compound);
|
|
|
|
public Object getFileNBT(File file);
|
|
|
|
public void setFileNBT(File file, Object newCompound);
|
|
|
|
public Object convertToNBT(Number number);
|
|
|
|
public Object convertToNBT(String string);
|
|
|
|
public String getMCId(ItemStack itemStack);
|
|
|
|
public ItemStack getItemFromMcId(String mcId);
|
|
|
|
public boolean getNoClip(Entity entity);
|
|
|
|
public void setNoClip(Entity entity, boolean noclip);
|
|
|
|
public boolean getFireProof(Entity entity);
|
|
|
|
public void setFireProof(Entity entity, boolean fireProof);
|
|
|
|
/*
|
|
public ItemStack[] getEndermanBlocks(Entity enderman);
|
|
|
|
public void setEndermanBlocks(Entity enderman, ItemStack... blocks);
|
|
*/
|
|
|
|
public Location getLastLocation(Entity entity);
|
|
|
|
public float getEntityStepLength(Entity entity);
|
|
|
|
public void setEntityStepLength(Entity entity, float length);
|
|
|
|
public boolean getElytraGlideState(Entity entity);
|
|
|
|
public void setElytraGlideState(Entity entity, boolean glide);
|
|
} |