Class FTLRecipesBehaviour

java.lang.Object
com.simibubi.create.foundation.blockEntity.behaviour.BlockEntityBehaviour
com.petrolpark.compat.create.core.block.entity.behaviour.AbstractRememberPlacerBehaviour
com.petrolpark.compat.create.core.recipe.firsttimelucky.FTLRecipesBehaviour

public class FTLRecipesBehaviour extends AbstractRememberPlacerBehaviour
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final com.simibubi.create.foundation.blockEntity.behaviour.BehaviourType<FTLRecipesBehaviour>
     

    Fields inherited from class com.simibubi.create.foundation.blockEntity.behaviour.BlockEntityBehaviour

    blockEntity
  • Constructor Summary

    Constructors
    Constructor
    Description
    FTLRecipesBehaviour(com.simibubi.create.foundation.blockEntity.SmartBlockEntity be, Predicate<net.minecraft.world.item.crafting.RecipeHolder<?>> recipeFilter)
    Ensure this Block Entity remembers who placed it for the purposes of ensuring first-time-lucky recipes award all outputs.
  • Method Summary

    Modifier and Type
    Method
    Description
    com.simibubi.create.foundation.blockEntity.behaviour.BehaviourType<?>
     
    boolean
    shouldRememberPlacer(net.minecraft.world.entity.player.Player placer)
     

    Methods inherited from class com.petrolpark.compat.create.core.block.entity.behaviour.AbstractRememberPlacerBehaviour

    getPlayer, onPlaceBlock, read, setPlacedBy, setPlacedBy, setPlayer, write

    Methods inherited from class com.simibubi.create.foundation.blockEntity.behaviour.BlockEntityBehaviour

    destroy, get, get, getPos, getRequiredItems, getWorld, initialize, isSafeNBT, lazyTick, onBlockChanged, onNeighborChanged, setLazyTickRate, tick, unload, writeSafe

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • TYPE

      public static final com.simibubi.create.foundation.blockEntity.behaviour.BehaviourType<FTLRecipesBehaviour> TYPE
  • Constructor Details

    • FTLRecipesBehaviour

      public FTLRecipesBehaviour(com.simibubi.create.foundation.blockEntity.SmartBlockEntity be, Predicate<net.minecraft.world.item.crafting.RecipeHolder<?>> recipeFilter)
      Ensure this Block Entity remembers who placed it for the purposes of ensuring first-time-lucky recipes award all outputs.
      Parameters:
      be -
      recipeFilter - all recipes which match this filter and implement IFTLProcessingRecipe will be checked - if there is at least one of them we haven't done, we'll remember the player
  • Method Details

    • shouldRememberPlacer

      public boolean shouldRememberPlacer(net.minecraft.world.entity.player.Player placer)
      Specified by:
      shouldRememberPlacer in class AbstractRememberPlacerBehaviour
    • getType

      public com.simibubi.create.foundation.blockEntity.behaviour.BehaviourType<?> getType()
      Specified by:
      getType in class com.simibubi.create.foundation.blockEntity.behaviour.BlockEntityBehaviour