Class BlockPlacedKubeEvent

java.lang.Object
dev.latvian.mods.kubejs.block.BlockPlacedKubeEvent
All Implemented Interfaces:
KubeEntityEvent, KubeEvent, KubeLevelEvent

@Info("Invoked when a block is placed.\n") public class BlockPlacedKubeEvent extends Object implements KubeEntityEvent
  • Constructor Details

    • BlockPlacedKubeEvent

      public BlockPlacedKubeEvent(net.neoforged.neoforge.event.level.BlockEvent.EntityPlaceEvent event)
  • Method Details

    • getLevel

      @Info("The level of the block that was placed.") public net.minecraft.world.level.Level getLevel()
      Specified by:
      getLevel in interface KubeEntityEvent
      Specified by:
      getLevel in interface KubeLevelEvent
    • getEntity

      @Info("The entity that placed the block. Can be `null`, e.g. when a block is placed by a dispenser.") public net.minecraft.world.entity.Entity getEntity()
      Specified by:
      getEntity in interface KubeEntityEvent
    • getBlock

      @Info("The block that is placed.") public LevelBlock getBlock()