Class EntityBlockCallback

java.lang.Object
dev.latvian.mods.kubejs.block.callback.EntityBlockCallback
Direct Known Subclasses:
AfterEntityFallenOnBlockCallback, EntityFallenOnBlockCallback

public class EntityBlockCallback extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final LevelBlock
     
    protected final net.minecraft.world.entity.Entity
     
    protected final net.minecraft.world.level.Level
     
    protected final net.minecraft.world.level.block.state.BlockState
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    EntityBlockCallback(net.minecraft.world.level.Level level, net.minecraft.world.entity.Entity entity, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state)
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    net.minecraft.world.entity.Entity
     
    net.minecraft.world.level.Level
     
    net.minecraft.core.BlockPos
     
    net.minecraft.world.level.block.state.BlockState
     
    boolean
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • level

      protected final net.minecraft.world.level.Level level
    • entity

      protected final net.minecraft.world.entity.Entity entity
    • block

      protected final LevelBlock block
    • state

      protected final net.minecraft.world.level.block.state.BlockState state
  • Constructor Details

    • EntityBlockCallback

      public EntityBlockCallback(net.minecraft.world.level.Level level, net.minecraft.world.entity.Entity entity, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state)
  • Method Details

    • getLevel

      @Info("Returns the level") public net.minecraft.world.level.Level getLevel()
    • getEntity

      @Info("Returns the entity") public net.minecraft.world.entity.Entity getEntity()
    • getBlock

      @Info("Returns the block") public LevelBlock getBlock()
    • getState

      @Info("Returns the BlockState") public net.minecraft.world.level.block.state.BlockState getState()
    • getPos

      @Info("Returns the block\'s position") public net.minecraft.core.BlockPos getPos()
    • isSuppressingBounce

      @Info("Returns if the entity is suppressing bouncing (for players this is true if the player is crouching)") public boolean isSuppressingBounce()