Package dev.cammiescorner.icarus.util
Class IcarusHelper
java.lang.Object
dev.cammiescorner.icarus.util.IcarusHelper
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic BiPredicate<net.minecraft.world.entity.LivingEntity, net.minecraft.world.item.ItemStack> static IcarusPlayerValuesstatic Function<net.minecraft.world.entity.LivingEntity, net.minecraft.world.item.ItemStack> static Predicate<net.minecraft.world.entity.LivingEntity> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic IcarusPlayerValuesgetConfigValues(net.minecraft.world.entity.LivingEntity entity) static @Nullable net.minecraft.world.item.ItemStackgetEquippedWings(net.minecraft.world.entity.LivingEntity entity) static booleanhasWings(net.minecraft.world.entity.LivingEntity entity) static booleanonFallFlyingTick(net.minecraft.world.entity.LivingEntity entity, @Nullable net.minecraft.world.item.ItemStack wings, boolean tick) static booleanonPlayerTick(net.minecraft.server.level.ServerPlayer player, net.minecraft.world.level.Level level) static voidonServerPlayerJoin(net.minecraft.server.level.ServerPlayer player) static voidstopFlying(net.minecraft.world.entity.player.Player player)
-
Field Details
-
hasWings
-
getEquippedWings
@Internal public static Function<net.minecraft.world.entity.LivingEntity,net.minecraft.world.item.ItemStack> getEquippedWings -
equipFunc
@Internal public static BiPredicate<net.minecraft.world.entity.LivingEntity,net.minecraft.world.item.ItemStack> equipFunc -
fallbackValues
-
-
Constructor Details
-
IcarusHelper
public IcarusHelper()
-
-
Method Details
-
onFallFlyingTick
public static boolean onFallFlyingTick(net.minecraft.world.entity.LivingEntity entity, @Nullable @Nullable net.minecraft.world.item.ItemStack wings, boolean tick) -
hasWings
public static boolean hasWings(net.minecraft.world.entity.LivingEntity entity) -
getEquippedWings
@Nullable public static @Nullable net.minecraft.world.item.ItemStack getEquippedWings(net.minecraft.world.entity.LivingEntity entity) -
getConfigValues
-
onPlayerTick
public static boolean onPlayerTick(net.minecraft.server.level.ServerPlayer player, net.minecraft.world.level.Level level) -
stopFlying
public static void stopFlying(net.minecraft.world.entity.player.Player player) -
onServerPlayerJoin
public static void onServerPlayerJoin(net.minecraft.server.level.ServerPlayer player)
-