Package com.petrolpark.util
Class BlockHelper
java.lang.Object
com.petrolpark.util.BlockHelper
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic final Stream<net.minecraft.core.BlockPos> betweenClosedExcludingEdges(net.minecraft.core.BlockPos firstPos, net.minecraft.core.BlockPos secondPos) static final booleancoplanar(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.BlockStatecopyAll(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.BlockStatecopyUnchecked(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 booleanequals(net.minecraft.world.level.block.state.BlockState s1, net.minecraft.world.level.block.state.BlockState s2) static final net.minecraft.world.level.block.Blockstatic 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)
-
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
-
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)
-