public final class AssemblyRecipe extends java.lang.Object implements java.lang.Comparable<AssemblyRecipe>
Modifier and Type | Field and Description |
---|---|
net.minecraft.util.ResourceLocation |
name |
net.minecraft.item.ItemStack |
output |
net.minecraft.nbt.NBTTagCompound |
recipeTag
Additional tag used to restore network-transmitted recipe to same state.
You need to register own IAssemblyRecipeProvider using IAssemblyRecipeRegistry.addRecipeProvider(IAssemblyRecipeProvider)
to handle this and declare IAssemblyRecipeProvider.getRecipe(ResourceLocation, NBTTagCompound) method |
long |
requiredMicroJoules |
com.google.common.collect.ImmutableSet<StackDefinition> |
requiredStacks |
Constructor and Description |
---|
AssemblyRecipe(net.minecraft.util.ResourceLocation name,
long requiredMicroJoules,
java.util.Set<StackDefinition> requiredStacks,
net.minecraft.item.ItemStack output) |
AssemblyRecipe(net.minecraft.util.ResourceLocation name,
long requiredMicroJoules,
java.util.Set<StackDefinition> requiredStacks,
net.minecraft.item.ItemStack output,
net.minecraft.nbt.NBTTagCompound recipeTag) |
AssemblyRecipe(java.lang.String name,
long requiredMicroJoules,
java.util.Set<StackDefinition> requiredStacks,
net.minecraft.item.ItemStack output) |
AssemblyRecipe(java.lang.String name,
long requiredMicroJoules,
java.util.Set<StackDefinition> requiredStacks,
net.minecraft.item.ItemStack output,
net.minecraft.nbt.NBTTagCompound recipeTag) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(AssemblyRecipe o) |
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
public final net.minecraft.util.ResourceLocation name
public final long requiredMicroJoules
public final com.google.common.collect.ImmutableSet<StackDefinition> requiredStacks
@Nonnull public final net.minecraft.item.ItemStack output
@Nullable public final net.minecraft.nbt.NBTTagCompound recipeTag
IAssemblyRecipeProvider
using IAssemblyRecipeRegistry.addRecipeProvider(IAssemblyRecipeProvider)
to handle this and declare IAssemblyRecipeProvider.getRecipe(ResourceLocation, NBTTagCompound)
methodpublic AssemblyRecipe(net.minecraft.util.ResourceLocation name, long requiredMicroJoules, java.util.Set<StackDefinition> requiredStacks, @Nonnull net.minecraft.item.ItemStack output, @Nullable net.minecraft.nbt.NBTTagCompound recipeTag)
public AssemblyRecipe(java.lang.String name, long requiredMicroJoules, java.util.Set<StackDefinition> requiredStacks, @Nonnull net.minecraft.item.ItemStack output, @Nullable net.minecraft.nbt.NBTTagCompound recipeTag)
public AssemblyRecipe(net.minecraft.util.ResourceLocation name, long requiredMicroJoules, java.util.Set<StackDefinition> requiredStacks, @Nonnull net.minecraft.item.ItemStack output)
public AssemblyRecipe(java.lang.String name, long requiredMicroJoules, java.util.Set<StackDefinition> requiredStacks, @Nonnull net.minecraft.item.ItemStack output)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public int compareTo(AssemblyRecipe o)
compareTo
in interface java.lang.Comparable<AssemblyRecipe>