Class PartTarget
java.lang.Object
org.cyclops.integrateddynamics.api.part.PartTarget
Object holder to refer to another block side and its origin.
- 
Method SummaryModifier and TypeMethodDescriptionbooleanforOffset(net.minecraft.core.Vec3i offset) Create a new instance with the given target offset.forTargetSide(net.minecraft.core.Direction targetSide) Create a new instance with the given target side.static PartTargetfromCenter(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos, net.minecraft.core.Direction side) Get the target from a center block that is targeted at another block.static PartTargetfromCenter(org.cyclops.cyclopscore.datastructure.DimPos pos, net.minecraft.core.Direction side) Get the target from a center block that is targeted at another block.static PartTargetfromCenter(PartPos pos) Get the target from a center block that is targeted at another block.inthashCode()booleanstatic PartTargetCreate a new instance.toString()
- 
Method Details- 
fromCenterpublic static PartTarget fromCenter(org.cyclops.cyclopscore.datastructure.DimPos pos, @Nullable net.minecraft.core.Direction side) Get the target from a center block that is targeted at another block.- Parameters:
- pos- The central position that is referring to the target.
- side- The side on the central position that points to the target.
- Returns:
- The target referral.
 
- 
fromCenterGet the target from a center block that is targeted at another block.- Parameters:
- pos- The central position that is referring to the target.
- Returns:
- The target referral.
 
- 
fromCenterpublic static PartTarget fromCenter(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos, net.minecraft.core.Direction side) Get the target from a center block that is targeted at another block.- Parameters:
- world- The world.
- pos- The central position that is referring to the target.
- side- The side on the central position that points to the target.
- Returns:
- The target referral.
 
- 
ofCreate a new instance.- Parameters:
- center- The center position.
- target- The target position.
- Returns:
- The target.
 
- 
getCenter
- 
getTarget
- 
isDefaultTargetpublic boolean isDefaultTarget()
- 
forTargetSideCreate a new instance with the given target side.- Parameters:
- targetSide- The side of the target.
- Returns:
- A new PartTargetinstance.
 
- 
forOffsetCreate a new instance with the given target offset.- Parameters:
- offset- The offset of the target.
- Returns:
- A new PartTargetinstance.
 
- 
equals
- 
hashCodepublic int hashCode()
- 
toString
 
-