Class BlockHelper

java.lang.Object
com.petrolpark.util.BlockHelper

public class BlockHelper extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final net.minecraft.core.Vec3i
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static final Stream<net.minecraft.core.BlockPos>
    betweenClosedExcludingEdges(net.minecraft.core.BlockPos firstPos, net.minecraft.core.BlockPos secondPos)
     
    static final boolean
    coplanar(net.minecraft.core.BlockPos pos1, net.minecraft.core.BlockPos pos2)
     
    static final Predicate<net.minecraft.core.BlockPos>
    coplanarWith(net.minecraft.core.BlockPos pos)
     
    static final net.minecraft.world.level.block.state.BlockState
    copyAll(net.minecraft.world.level.block.state.BlockState base, net.minecraft.world.level.block.state.BlockState toCopy)
     
    static final <T extends Comparable<T>>
    net.minecraft.world.level.block.state.BlockState
    copyUnchecked(net.minecraft.world.level.block.state.BlockState base, net.minecraft.world.level.block.state.BlockState toCopy, net.minecraft.world.level.block.state.properties.Property<T> property)
     
    static final boolean
    equals(net.minecraft.world.level.block.state.BlockState s1, net.minecraft.world.level.block.state.BlockState s2)
     
    static final net.minecraft.world.level.block.Block
     
    static final Stream<net.minecraft.world.level.block.state.BlockState>
    streamMatching(net.minecraft.advancements.critereon.BlockPredicate blockPredicate)
     
    static final Supplier<net.minecraft.world.level.block.Block>
    supplier(net.minecraft.resources.ResourceLocation id)
     

    Methods inherited from class java.lang.Object

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

    • UNIT

      public static final net.minecraft.core.Vec3i UNIT
  • Constructor Details

    • BlockHelper

      public BlockHelper()
  • Method Details

    • supplier

      public static final Supplier<net.minecraft.world.level.block.Block> supplier(net.minecraft.resources.ResourceLocation id)
    • betweenClosedExcludingEdges

      public static final Stream<net.minecraft.core.BlockPos> betweenClosedExcludingEdges(net.minecraft.core.BlockPos firstPos, net.minecraft.core.BlockPos secondPos)
    • coplanar

      public static final boolean coplanar(net.minecraft.core.BlockPos pos1, net.minecraft.core.BlockPos pos2)
    • coplanarWith

      public static final Predicate<net.minecraft.core.BlockPos> coplanarWith(net.minecraft.core.BlockPos pos)
    • streamMatching

      public static final Stream<net.minecraft.world.level.block.state.BlockState> streamMatching(net.minecraft.advancements.critereon.BlockPredicate blockPredicate)
    • equals

      public static final boolean equals(net.minecraft.world.level.block.state.BlockState s1, net.minecraft.world.level.block.state.BlockState s2)
    • getBlock

      @Nullable public static final net.minecraft.world.level.block.Block getBlock(Object obj)
    • copyUnchecked

      public static final <T extends Comparable<T>> net.minecraft.world.level.block.state.BlockState copyUnchecked(net.minecraft.world.level.block.state.BlockState base, net.minecraft.world.level.block.state.BlockState toCopy, net.minecraft.world.level.block.state.properties.Property<T> property)
    • copyAll

      public static final net.minecraft.world.level.block.state.BlockState copyAll(net.minecraft.world.level.block.state.BlockState base, net.minecraft.world.level.block.state.BlockState toCopy)