java.lang.Object
com.simibubi.create.content.contraptions.components.actors.dispenser.ContraptionBlockSource
All Implemented Interfaces:
net.minecraft.core.BlockSource, net.minecraft.core.Position

public class ContraptionBlockSource extends Object implements net.minecraft.core.BlockSource
  • Constructor Details

    • ContraptionBlockSource

      public ContraptionBlockSource(MovementContext context, net.minecraft.core.BlockPos pos)
    • ContraptionBlockSource

      public ContraptionBlockSource(MovementContext context, net.minecraft.core.BlockPos pos, @Nullable net.minecraft.core.Direction overrideFacing)
  • Method Details

    • x

      public double x()
      Specified by:
      x in interface net.minecraft.core.BlockSource
      Specified by:
      x in interface net.minecraft.core.Position
    • y

      public double y()
      Specified by:
      y in interface net.minecraft.core.BlockSource
      Specified by:
      y in interface net.minecraft.core.Position
    • z

      public double z()
      Specified by:
      z in interface net.minecraft.core.BlockSource
      Specified by:
      z in interface net.minecraft.core.Position
    • getPos

      public net.minecraft.core.BlockPos getPos()
      Specified by:
      getPos in interface net.minecraft.core.BlockSource
    • getBlockState

      public net.minecraft.world.level.block.state.BlockState getBlockState()
      Specified by:
      getBlockState in interface net.minecraft.core.BlockSource
    • getEntity

      @Nullable public <T extends net.minecraft.world.level.block.entity.BlockEntity> T getEntity()
      Specified by:
      getEntity in interface net.minecraft.core.BlockSource
    • getLevel

      @Nullable public net.minecraft.server.level.ServerLevel getLevel()
      Specified by:
      getLevel in interface net.minecraft.core.BlockSource