Class AssemblagePart
java.lang.Object
petrolpark.mc.petrolsparts.content.kinetics.assemblage.AssemblagePart
- All Implemented Interfaces:
petrolpark.mc.library.compat.create.core.world.block.multiPart.CreateMultiPartBlock.ICreatePart,petrolpark.mc.library.core.world.block.multiPart.MultiPartBlock.IPart
public final class AssemblagePart
extends Object
implements petrolpark.mc.library.compat.create.core.world.block.multiPart.CreateMultiPartBlock.ICreatePart
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final booleanprotected final net.minecraft.world.level.ItemLikeprotected final Supplier<com.simibubi.create.content.schematics.requirement.ItemRequirement> protected final Function<AssemblageBlockEntity, AssemblageBlockEntity.AssemblageBlockEntityPart> protected final net.minecraft.resources.ResourceKey<net.minecraft.world.level.storage.loot.LootTable> protected final Predicate<net.minecraft.core.Direction> static final UnaryOperator<net.minecraft.world.level.block.state.BlockState> static final UnaryOperator<net.minecraft.world.level.block.state.BlockState> static final UnaryOperator<net.minecraft.world.level.block.state.BlockState> protected final UnaryOperator<net.minecraft.world.level.block.state.BlockState> protected final net.minecraft.world.phys.shapes.VoxelShape -
Constructor Summary
ConstructorsConstructorDescriptionAssemblagePart(boolean isShaft, Predicate<net.minecraft.core.Direction> onEnd, net.minecraft.world.phys.shapes.VoxelShape shape, net.minecraft.resources.ResourceKey<net.minecraft.world.level.storage.loot.LootTable> loot, UnaryOperator<net.minecraft.world.level.block.state.BlockState> remover, Function<AssemblageBlockEntity, AssemblageBlockEntity.AssemblageBlockEntityPart> kineticPartGetter, net.minecraft.world.level.ItemLike item) -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.item.ItemStackcloneItemStack(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.LevelReader level, net.minecraft.core.BlockPos pos, net.minecraft.world.entity.player.Player player) getCogPart(net.minecraft.core.Direction direction) booleanisEndCog(AssemblageSet set, net.minecraft.core.Direction face) booleanisMiddleCog(AssemblageSet set, net.minecraft.core.Direction.Axis axis) booleanisOnEnd(net.minecraft.core.Direction face) booleanisShaft()com.simibubi.create.content.schematics.requirement.ItemRequirementnet.minecraft.resources.ResourceKey<net.minecraft.world.level.storage.loot.LootTable> loot()static final UnaryOperator<net.minecraft.world.level.block.state.BlockState> removeCog(net.minecraft.core.Direction direction) net.minecraft.world.phys.shapes.VoxelShapeshape()
-
Field Details
-
REMOVE_TOP_COG
-
REMOVE_BOTTOM_COG
public static final UnaryOperator<net.minecraft.world.level.block.state.BlockState> REMOVE_BOTTOM_COG -
REMOVE_MIDDLE_COG
public static final UnaryOperator<net.minecraft.world.level.block.state.BlockState> REMOVE_MIDDLE_COG -
isShaft
protected final boolean isShaft -
onEnd
-
shape
protected final net.minecraft.world.phys.shapes.VoxelShape shape -
loot
protected final net.minecraft.resources.ResourceKey<net.minecraft.world.level.storage.loot.LootTable> loot -
remover
-
kineticPartGetter
protected final Function<AssemblageBlockEntity,AssemblageBlockEntity.AssemblageBlockEntityPart> kineticPartGetter -
item
protected final net.minecraft.world.level.ItemLike item -
itemRequirement
protected final Supplier<com.simibubi.create.content.schematics.requirement.ItemRequirement> itemRequirement
-
-
Constructor Details
-
AssemblagePart
public AssemblagePart(boolean isShaft, Predicate<net.minecraft.core.Direction> onEnd, net.minecraft.world.phys.shapes.VoxelShape shape, net.minecraft.resources.ResourceKey<net.minecraft.world.level.storage.loot.LootTable> loot, UnaryOperator<net.minecraft.world.level.block.state.BlockState> remover, Function<AssemblageBlockEntity, AssemblageBlockEntity.AssemblageBlockEntityPart> kineticPartGetter, net.minecraft.world.level.ItemLike item)
-
-
Method Details
-
removeCog
public static final UnaryOperator<net.minecraft.world.level.block.state.BlockState> removeCog(net.minecraft.core.Direction direction) -
getCogPart
public static final Function<AssemblageBlockEntity,AssemblageBlockEntity.AssemblageBlockEntityPart> getCogPart(net.minecraft.core.Direction direction) -
isShaft
public boolean isShaft() -
isOnEnd
public boolean isOnEnd(net.minecraft.core.Direction face) -
cloneItemStack
public net.minecraft.world.item.ItemStack cloneItemStack(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.LevelReader level, net.minecraft.core.BlockPos pos, net.minecraft.world.entity.player.Player player) - Specified by:
cloneItemStackin interfacepetrolpark.mc.library.core.world.block.multiPart.MultiPartBlock.IPart
-
shape
public net.minecraft.world.phys.shapes.VoxelShape shape()- Specified by:
shapein interfacepetrolpark.mc.library.core.world.block.multiPart.MultiPartBlock.IPart
-
loot
public net.minecraft.resources.ResourceKey<net.minecraft.world.level.storage.loot.LootTable> loot()- Specified by:
lootin interfacepetrolpark.mc.library.core.world.block.multiPart.MultiPartBlock.IPart
-
itemRequirement
public com.simibubi.create.content.schematics.requirement.ItemRequirement itemRequirement()- Specified by:
itemRequirementin interfacepetrolpark.mc.library.compat.create.core.world.block.multiPart.CreateMultiPartBlock.ICreatePart
-
getKineticPart
-
isEndCog
-
isMiddleCog
-