Class AzimuthAdvancementBehaviour

java.lang.Object
com.simibubi.create.foundation.blockEntity.behaviour.BlockEntityBehaviour
com.cake.azimuth.advancement.AzimuthAdvancementBehaviour

public class AzimuthAdvancementBehaviour extends com.simibubi.create.foundation.blockEntity.behaviour.BlockEntityBehaviour
  • Field Summary

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

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

    blockEntity
  • Constructor Summary

    Constructors
    Constructor
    Description
    AzimuthAdvancementBehaviour(com.simibubi.create.foundation.blockEntity.SmartBlockEntity be, AzimuthAdvancement... advancements)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    add(AzimuthAdvancement... advancements)
     
    void
     
    void
    awardPlayerIfNear(AzimuthAdvancement advancement, int maxDistance)
     
    static void
    create(List<com.simibubi.create.foundation.blockEntity.behaviour.BlockEntityBehaviour> behaviours, com.simibubi.create.foundation.blockEntity.SmartBlockEntity be, AzimuthAdvancement... advancements)
     
    com.simibubi.create.foundation.blockEntity.behaviour.BehaviourType<?>
     
    void
     
    boolean
     
    void
    read(net.minecraft.nbt.CompoundTag nbt, net.minecraft.core.HolderLookup.Provider registries, boolean clientPacket)
     
    static void
    setPlacedBy(net.minecraft.world.level.Level worldIn, net.minecraft.core.BlockPos pos, net.minecraft.world.entity.LivingEntity placer)
     
    void
     
    static void
    tryAward(net.minecraft.world.level.BlockGetter reader, net.minecraft.core.BlockPos pos, AzimuthAdvancement advancement)
     
    void
    write(net.minecraft.nbt.CompoundTag nbt, net.minecraft.core.HolderLookup.Provider registries, boolean clientPacket)
     

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

    destroy, get, get, getPos, getRequiredItems, getWorld, 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

    • AzimuthAdvancementBehaviour

      public AzimuthAdvancementBehaviour(com.simibubi.create.foundation.blockEntity.SmartBlockEntity be, AzimuthAdvancement... advancements)
  • Method Details

    • create

      public static void create(List<com.simibubi.create.foundation.blockEntity.behaviour.BlockEntityBehaviour> behaviours, com.simibubi.create.foundation.blockEntity.SmartBlockEntity be, AzimuthAdvancement... advancements)
    • add

      public void add(AzimuthAdvancement... advancements)
    • isOwnerPresent

      public boolean isOwnerPresent()
    • setPlayer

      public void setPlayer(UUID id)
    • initialize

      public void initialize()
      Overrides:
      initialize in class com.simibubi.create.foundation.blockEntity.behaviour.BlockEntityBehaviour
    • awardPlayerIfNear

      public void awardPlayerIfNear(AzimuthAdvancement advancement, int maxDistance)
    • awardPlayer

      public void awardPlayer(AzimuthAdvancement advancement)
    • write

      public void write(net.minecraft.nbt.CompoundTag nbt, net.minecraft.core.HolderLookup.Provider registries, boolean clientPacket)
      Overrides:
      write in class com.simibubi.create.foundation.blockEntity.behaviour.BlockEntityBehaviour
    • read

      public void read(net.minecraft.nbt.CompoundTag nbt, net.minecraft.core.HolderLookup.Provider registries, boolean clientPacket)
      Overrides:
      read in class com.simibubi.create.foundation.blockEntity.behaviour.BlockEntityBehaviour
    • getType

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

      public static void tryAward(net.minecraft.world.level.BlockGetter reader, net.minecraft.core.BlockPos pos, AzimuthAdvancement advancement)
    • setPlacedBy

      public static void setPlacedBy(net.minecraft.world.level.Level worldIn, net.minecraft.core.BlockPos pos, net.minecraft.world.entity.LivingEntity placer)