Class AdvancementBehaviour

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

public class AdvancementBehaviour extends AbstractRememberPlacerBehaviour
  • Field Summary

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

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

    blockEntity
  • Constructor Summary

    Constructors
    Constructor
    Description
    AdvancementBehaviour(com.simibubi.create.foundation.blockEntity.SmartBlockEntity be)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    award(Consumer<net.minecraft.server.level.ServerPlayer> trigger)
     
    com.simibubi.create.foundation.blockEntity.behaviour.BehaviourType<AdvancementBehaviour>
     
    boolean
    shouldRememberPlacer(net.minecraft.world.entity.player.Player player)
     

    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<AdvancementBehaviour> TYPE
  • Constructor Details

    • AdvancementBehaviour

      public AdvancementBehaviour(com.simibubi.create.foundation.blockEntity.SmartBlockEntity be)
  • Method Details

    • shouldRememberPlacer

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

      public void award(Consumer<net.minecraft.server.level.ServerPlayer> trigger)
    • getType

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