Class FirstTimeLuckyRecipesBehaviour

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

public class FirstTimeLuckyRecipesBehaviour extends AbstractRememberPlacerBehaviour
  • Field Summary

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

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

    blockEntity
  • Constructor Summary

    Constructors
    Constructor
    Description
    FirstTimeLuckyRecipesBehaviour(com.simibubi.create.foundation.blockEntity.SmartBlockEntity be, Predicate<net.minecraft.world.item.crafting.Recipe<?>> 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.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

  • Constructor Details

    • FirstTimeLuckyRecipesBehaviour

      public FirstTimeLuckyRecipesBehaviour(com.simibubi.create.foundation.blockEntity.SmartBlockEntity be, Predicate<net.minecraft.world.item.crafting.Recipe<?>> 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 IFirstTimeLuckyRecipe 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