Interface IOnBlockPreviewEvent

All Known Implementing Classes:
OnBlockPreviewEvent, OnBlockPreviewEvent.Post, OnBlockPreviewEvent.Pre

public interface IOnBlockPreviewEvent
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    firePostEvent(PreviewMode previewMode, net.minecraft.world.level.block.state.BlockState state, net.minecraft.core.BlockPos pos, net.minecraft.client.player.LocalPlayer player, @Nullable net.minecraft.world.level.block.entity.BlockEntity blockEntity, float partialTicks, com.mojang.blaze3d.vertex.PoseStack poseStack, Set<BlockLike> blockLikeSet)
     
    firePreEvent(PreviewMode previewMode, boolean isCancelled, net.minecraft.world.level.block.state.BlockState state, net.minecraft.core.BlockPos pos, net.minecraft.client.player.LocalPlayer player, @Nullable net.minecraft.world.level.block.entity.BlockEntity blockEntity, float partialTicks, com.mojang.blaze3d.vertex.PoseStack poseStack, Set<BlockLike> blockLikeSet)
     
    @Nullable net.minecraft.world.level.block.entity.BlockEntity
     
     
    net.minecraft.world.level.block.state.BlockState
     
    net.minecraft.core.BlockPos
     
    float
     
    net.minecraft.client.player.LocalPlayer
     
    com.mojang.blaze3d.vertex.PoseStack
     
     
    boolean
     
    void
    setCancelledInternal(boolean canceled)
     
    void
     
  • Method Details

    • getPreviewMode

      PreviewMode getPreviewMode()
    • setPreviewMode

      void setPreviewMode(PreviewMode result)
    • isCancelledInternal

      boolean isCancelledInternal()
    • setCancelledInternal

      void setCancelledInternal(boolean canceled)
    • getBlockState

      net.minecraft.world.level.block.state.BlockState getBlockState()
    • getCenter

      net.minecraft.core.BlockPos getCenter()
    • getPlayer

      net.minecraft.client.player.LocalPlayer getPlayer()
    • getBlockEntity

      @Nullable @Nullable net.minecraft.world.level.block.entity.BlockEntity getBlockEntity()
    • getPartialTick

      float getPartialTick()
    • getPoseStack

      com.mojang.blaze3d.vertex.PoseStack getPoseStack()
    • getBlocksForPreview

      Set<BlockLike> getBlocksForPreview()
    • firePreEvent

      static IOnBlockPreviewEvent firePreEvent(PreviewMode previewMode, boolean isCancelled, net.minecraft.world.level.block.state.BlockState state, net.minecraft.core.BlockPos pos, net.minecraft.client.player.LocalPlayer player, @Nullable @Nullable net.minecraft.world.level.block.entity.BlockEntity blockEntity, float partialTicks, com.mojang.blaze3d.vertex.PoseStack poseStack, Set<BlockLike> blockLikeSet)
    • firePostEvent

      static void firePostEvent(PreviewMode previewMode, net.minecraft.world.level.block.state.BlockState state, net.minecraft.core.BlockPos pos, net.minecraft.client.player.LocalPlayer player, @Nullable @Nullable net.minecraft.world.level.block.entity.BlockEntity blockEntity, float partialTicks, com.mojang.blaze3d.vertex.PoseStack poseStack, Set<BlockLike> blockLikeSet)