Class PneumaticCraftRecipe
java.lang.Object
me.desht.pneumaticcraft.api.crafting.recipe.PneumaticCraftRecipe
- All Implemented Interfaces:
net.minecraft.world.item.crafting.Recipe<PneumaticCraftRecipe.DummyIInventory>
- Direct Known Subclasses:
AmadronRecipe,AssemblyRecipe,ExplosionCraftingRecipe,FluidMixerRecipe,FuelQualityRecipe,HeatFrameCoolingRecipe,HeatPropertiesRecipe,PressureChamberRecipe,RefineryRecipe,ThermoPlantRecipe
public abstract class PneumaticCraftRecipe
extends Object
implements net.minecraft.world.item.crafting.Recipe<PneumaticCraftRecipe.DummyIInventory>
Base class for all PneumaticCraft machine recipes, which are registered in the vanilla RecipeManager.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classJust to keep vanilla happy... -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedPneumaticCraftRecipe(net.minecraft.resources.ResourceLocation id) -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.item.ItemStackbooleancanCraftInDimensions(int width, int height) net.minecraft.resources.ResourceLocationgetId()net.minecraft.world.item.ItemStackbooleanbooleanmatches(PneumaticCraftRecipe.DummyIInventory inv, net.minecraft.world.level.Level worldIn) abstract voidwrite(net.minecraft.network.FriendlyByteBuf buffer) Writes this recipe to a PacketBuffer.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.world.item.crafting.Recipe
getGroup, getIngredients, getRemainingItems, getSerializer, getToastSymbol, getType, isIncomplete
-
Constructor Details
-
PneumaticCraftRecipe
protected PneumaticCraftRecipe(net.minecraft.resources.ResourceLocation id)
-
-
Method Details
-
write
public abstract void write(net.minecraft.network.FriendlyByteBuf buffer) Writes this recipe to a PacketBuffer.- Parameters:
buffer- The buffer to write to.
-
matches
public boolean matches(PneumaticCraftRecipe.DummyIInventory inv, net.minecraft.world.level.Level worldIn) - Specified by:
matchesin interfacenet.minecraft.world.item.crafting.Recipe<PneumaticCraftRecipe.DummyIInventory>
-
assemble
- Specified by:
assemblein interfacenet.minecraft.world.item.crafting.Recipe<PneumaticCraftRecipe.DummyIInventory>
-
canCraftInDimensions
public boolean canCraftInDimensions(int width, int height) - Specified by:
canCraftInDimensionsin interfacenet.minecraft.world.item.crafting.Recipe<PneumaticCraftRecipe.DummyIInventory>
-
getResultItem
public net.minecraft.world.item.ItemStack getResultItem()- Specified by:
getResultItemin interfacenet.minecraft.world.item.crafting.Recipe<PneumaticCraftRecipe.DummyIInventory>
-
getId
public net.minecraft.resources.ResourceLocation getId()- Specified by:
getIdin interfacenet.minecraft.world.item.crafting.Recipe<PneumaticCraftRecipe.DummyIInventory>
-
isSpecial
public boolean isSpecial()- Specified by:
isSpecialin interfacenet.minecraft.world.item.crafting.Recipe<PneumaticCraftRecipe.DummyIInventory>
-