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
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.simibubi.create.foundation.blockEntity.behaviour.BehaviourType<FirstTimeLuckyRecipesBehaviour>Fields inherited from class com.simibubi.create.foundation.blockEntity.behaviour.BlockEntityBehaviour
blockEntity -
Constructor Summary
ConstructorsConstructorDescriptionFirstTimeLuckyRecipesBehaviour(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 TypeMethodDescriptioncom.simibubi.create.foundation.blockEntity.behaviour.BehaviourType<?>getType()booleanshouldRememberPlacer(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, writeMethods 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
-
Field Details
-
TYPE
public static final com.simibubi.create.foundation.blockEntity.behaviour.BehaviourType<FirstTimeLuckyRecipesBehaviour> TYPE
-
-
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 implementIFirstTimeLuckyRecipewill 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:
shouldRememberPlacerin classAbstractRememberPlacerBehaviour
-
getType
public com.simibubi.create.foundation.blockEntity.behaviour.BehaviourType<?> getType()- Specified by:
getTypein classcom.simibubi.create.foundation.blockEntity.behaviour.BlockEntityBehaviour
-