Package codechicken.microblock.part
Class MicroblockPlacement
java.lang.Object
codechicken.microblock.part.MicroblockPlacement
Created by covers1624 on 20/10/22.
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal booleanfinal booleanfinal org.apache.commons.lang3.tuple.Pair<TileMultipart, Boolean> final net.minecraft.world.InteractionHandfinal net.minecraft.world.phys.BlockHitResultfinal doublefinal TileMultipartfinal booleanfinal net.minecraft.world.level.Levelfinal MicroMaterialfinal MicroblockPartFactoryfinal booleanfinal intfinal net.minecraft.world.entity.player.Playerfinal net.minecraft.core.BlockPosfinal PlacementPropertiesfinal intfinal intfinal intfinal booleanfinal codechicken.lib.vec.Vector3 -
Constructor Summary
ConstructorsConstructorDescriptionMicroblockPlacement(net.minecraft.world.entity.player.Player player, net.minecraft.world.InteractionHand hand, net.minecraft.world.phys.BlockHitResult hit, int size, MicroMaterial material, boolean checkMaterial, PlacementProperties pp) -
Method Summary
Modifier and TypeMethodDescription@Nullable ExecutablePlacementcreate(int size, int slot, MicroMaterial material) @Nullable ExecutablePlacementexpand(MicroblockPart mPart, MicroblockPart nPart) @Nullable ExecutablePlacementexpand(StandardMicroblockPart part) @Nullable ExecutablePlacementexternalPlacement(int slot) @Nullable ExecutablePlacementstatic doublegetHitDepth(codechicken.lib.vec.Vector3 vHit, int side) @Nullable ExecutablePlacementinternalPlacement(TileMultipart tile, int slot) @Nullable ExecutablePlacementinternalPlacement(TileMultipart tile, MicroblockPart part)
-
Field Details
-
player
public final net.minecraft.world.entity.player.Player player -
hand
public final net.minecraft.world.InteractionHand hand -
hit
public final net.minecraft.world.phys.BlockHitResult hit -
size
public final int size -
material
-
checkMaterial
public final boolean checkMaterial -
pp
-
level
public final net.minecraft.world.level.Level level -
microFactory
-
pos
public final net.minecraft.core.BlockPos pos -
vHit
public final codechicken.lib.vec.Vector3 vHit -
gTile
-
hTile
-
side
public final int side -
slot
public final int slot -
oSlot
public final int oSlot -
hitDepth
public final double hitDepth -
useOppMod
public final boolean useOppMod -
oppMod
public final boolean oppMod -
internal
public final boolean internal -
doExpand
public final boolean doExpand
-
-
Constructor Details
-
MicroblockPlacement
public MicroblockPlacement(net.minecraft.world.entity.player.Player player, net.minecraft.world.InteractionHand hand, net.minecraft.world.phys.BlockHitResult hit, int size, MicroMaterial material, boolean checkMaterial, PlacementProperties pp)
-
-
Method Details
-
calculate
-
expand
-
expand
-
internalPlacement
-
internalPlacement
@Nullable public @Nullable ExecutablePlacement internalPlacement(TileMultipart tile, MicroblockPart part) -
externalPlacement
-
externalPlacement
-
getHitDepth
public static double getHitDepth(codechicken.lib.vec.Vector3 vHit, int side) -
create
-