public static interface NaturesAuraAPI.IInternalHooks
NaturesAuraAPI.instance()| Modifier and Type | Method and Description |
|---|---|
IMultiblock |
createMultiblock(net.minecraft.util.ResourceLocation name,
java.lang.String[][] pattern,
java.lang.Object... rawMatchers)
This method is used to create a custom multiblock from within the
API.
|
boolean |
extractAuraFromPlayer(net.minecraft.entity.player.EntityPlayer player,
int amount,
boolean simulate)
Helper method to extract aura from an
IAuraContainer in the
supplied player's inventory or baubles slots. |
int |
getAuraInArea(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
int radius) |
void |
getAuraSpotsInArea(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
int radius,
java.util.function.BiConsumer<net.minecraft.util.math.BlockPos,java.lang.Integer> consumer) |
net.minecraft.util.math.BlockPos |
getHighestAuraDrainSpot(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
int radius,
net.minecraft.util.math.BlockPos defaultSpot) |
net.minecraft.util.math.BlockPos |
getLowestAuraDrainSpot(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
int radius,
net.minecraft.util.math.BlockPos defaultSpot) |
void |
spawnMagicParticle(double posX,
double posY,
double posZ,
double motionX,
double motionY,
double motionZ,
int color,
float scale,
int maxAge,
float gravity,
boolean collision,
boolean fade)
This method can be used to spawn the magic particle effect used by
Nature's Aura.
|
void |
spawnParticleStream(float startX,
float startY,
float startZ,
float endX,
float endY,
float endZ,
float speed,
int color,
float scale)
This method can be used to spawn the magic particle effect used by
Nature's Aura.
|
boolean extractAuraFromPlayer(net.minecraft.entity.player.EntityPlayer player,
int amount,
boolean simulate)
IAuraContainer in the
supplied player's inventory or baubles slots. The method returns true
if the aura could be extracted. Note that, if the player is in
creative mode, this method will always return true and no extraction
will take place.player - The playeramount - The amount to extractsimulate - If the extraction should be simulatedvoid spawnMagicParticle(double posX,
double posY,
double posZ,
double motionX,
double motionY,
double motionZ,
int color,
float scale,
int maxAge,
float gravity,
boolean collision,
boolean fade)
posX - The x positionposY - The y positionposZ - The z positionmotionX - The x motionmotionY - The y motionmotionZ - The z motioncolor - The color the particle should have, in hexscale - The scale of the particlemaxAge - The max age before the particle should diegravity - The amount of gravity the particle should have, can
be 0collision - If the particle should collide with blocksfade - If the particle should slowly fade out or suddenly
disappearvoid spawnParticleStream(float startX,
float startY,
float startZ,
float endX,
float endY,
float endZ,
float speed,
int color,
float scale)
startX - The start xstartY - The start ystartZ - The start zendX - The end xendY - The end yendZ - The end zspeed - The speed at which the particle should gocolor - The color of the particlescale - The scale of the particleIMultiblock createMultiblock(net.minecraft.util.ResourceLocation name, java.lang.String[][] pattern, java.lang.Object... rawMatchers)
name - The name the multiblock should havepattern - The pattern that the multiblock should have, where
each character is mapped to a raw matcherrawMatchers - Each char matcher in the form of the char followed
by a matcher, either in the form of a Block, an
IBlockState or a Matcher, similar to the
old way that crafting recipes work.void getAuraSpotsInArea(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
int radius,
java.util.function.BiConsumer<net.minecraft.util.math.BlockPos,java.lang.Integer> consumer)
int getAuraInArea(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
int radius)
net.minecraft.util.math.BlockPos getLowestAuraDrainSpot(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
int radius,
net.minecraft.util.math.BlockPos defaultSpot)
net.minecraft.util.math.BlockPos getHighestAuraDrainSpot(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
int radius,
net.minecraft.util.math.BlockPos defaultSpot)