Package at.petrak.hexcasting.forge.xplat
Class ForgeXplatImpl
java.lang.Object
at.petrak.hexcasting.forge.xplat.ForgeXplatImpl
- All Implemented Interfaces:
at.petrak.hexcasting.xplat.IXplatAbstractions
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final UUIDstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from interface at.petrak.hexcasting.xplat.IXplatAbstractions
HEXCASTING, INSTANCE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.item.Item.PropertiesaddEquipSlotFabric(net.minecraft.world.entity.EquipmentSlot slot) voidclearCastingData(net.minecraft.server.level.ServerPlayer player) <T extends net.minecraft.world.level.block.entity.BlockEntity>
net.minecraft.world.level.block.entity.BlockEntityType<T>createBlockEntityType(BiFunction<net.minecraft.core.BlockPos, net.minecraft.world.level.block.state.BlockState, T> func, net.minecraft.world.level.block.Block... blocks) booleandrainAllFluid(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos) @Nullable at.petrak.hexcasting.api.addldata.ADIotaHolderfindDataHolder(net.minecraft.world.entity.Entity entity) @Nullable at.petrak.hexcasting.api.addldata.ADIotaHolderfindDataHolder(net.minecraft.world.item.ItemStack stack) @Nullable at.petrak.hexcasting.api.addldata.ADHexHolderfindHexHolder(net.minecraft.world.item.ItemStack stack) @Nullable at.petrak.hexcasting.api.addldata.ADMediaHolderfindMediaHolder(net.minecraft.server.level.ServerPlayer player) @Nullable at.petrak.hexcasting.api.addldata.ADMediaHolderfindMediaHolder(net.minecraft.world.item.ItemStack stack) @Nullable at.petrak.hexcasting.api.addldata.ADVariantItemfindVariantHolder(net.minecraft.world.item.ItemStack stack) net.minecraft.core.Registry<at.petrak.hexcasting.api.casting.ActionRegistryEntry>at.petrak.hexcasting.api.player.AltioraAbilitygetAltiora(net.minecraft.world.entity.player.Player player) net.minecraft.core.Registry<at.petrak.hexcasting.api.casting.arithmetic.Arithmetic>at.petrak.hexcasting.api.pigment.ColorProvidergetColorProvider(at.petrak.hexcasting.api.pigment.FrozenPigment pigment) net.minecraft.core.Registry<at.petrak.hexcasting.api.casting.eval.vm.ContinuationFrame.Type<?>>net.minecraft.core.Registry<at.petrak.hexcasting.api.casting.eval.sideeffects.EvalSound>at.petrak.hexcasting.api.player.FlightAbilitygetFlight(net.minecraft.server.level.ServerPlayer player) net.minecraft.core.Registry<at.petrak.hexcasting.api.casting.iota.IotaType<?>>getModName(String namespace) List<at.petrak.hexcasting.api.casting.eval.ResolvedPattern>getPatternsSavedInUi(net.minecraft.server.level.ServerPlayer player) at.petrak.hexcasting.interop.pehkui.PehkuiInterop.ApiAbstractionat.petrak.hexcasting.api.pigment.FrozenPigmentgetPigment(net.minecraft.world.entity.player.Player player) at.petrak.hexcasting.api.player.SentinelgetSentinel(net.minecraft.world.entity.player.Player player) net.minecraft.core.Registry<at.petrak.hexcasting.api.casting.castables.SpecialHandler.Factory<?>>at.petrak.hexcasting.api.casting.eval.vm.CastingVMgetStaffcastVM(net.minecraft.server.level.ServerPlayer player, net.minecraft.world.InteractionHand hand) net.minecraft.world.item.crafting.IngredientgetUnsealedIngredient(net.minecraft.world.item.ItemStack stack) voidbooleanisBrainswept(net.minecraft.world.entity.Mob e) booleanisBreakingAllowed(net.minecraft.server.level.ServerLevel world, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, @Nullable net.minecraft.world.entity.player.Player player) booleanisCorrectTierForDrops(net.minecraft.world.item.Tier tier, net.minecraft.world.level.block.state.BlockState bs) booleanisModPresent(String id) booleanbooleanisPigment(net.minecraft.world.item.ItemStack stack) booleanisPlacingAllowed(net.minecraft.server.level.ServerLevel world, net.minecraft.core.BlockPos pos, net.minecraft.world.item.ItemStack blockStack, @Nullable net.minecraft.world.entity.player.Player player) net.minecraft.world.level.storage.loot.predicates.LootItemCondition.Builderat.petrak.hexcasting.xplat.Platformplatform()voidsendPacketNear(net.minecraft.world.phys.Vec3 pos, double radius, net.minecraft.server.level.ServerLevel dimension, at.petrak.hexcasting.common.msgs.IMessage packet) voidsendPacketToPlayer(net.minecraft.server.level.ServerPlayer target, at.petrak.hexcasting.common.msgs.IMessage packet) voidsendPacketTracking(net.minecraft.world.entity.Entity entity, at.petrak.hexcasting.common.msgs.IMessage packet) voidsetAltiora(net.minecraft.world.entity.player.Player player, @Nullable at.petrak.hexcasting.api.player.AltioraAbility altiora) voidsetBrainsweepAddlData(net.minecraft.world.entity.Mob mob) voidsetFlight(net.minecraft.server.level.ServerPlayer player, at.petrak.hexcasting.api.player.FlightAbility flight) voidsetPatterns(net.minecraft.server.level.ServerPlayer player, List<at.petrak.hexcasting.api.casting.eval.ResolvedPattern> patterns) @Nullable at.petrak.hexcasting.api.pigment.FrozenPigmentsetPigment(net.minecraft.world.entity.player.Player player, @Nullable at.petrak.hexcasting.api.pigment.FrozenPigment pigment) voidsetSentinel(net.minecraft.world.entity.player.Player player, @Nullable at.petrak.hexcasting.api.player.Sentinel sentinel) voidsetStaffcastImage(net.minecraft.server.level.ServerPlayer player, @Nullable at.petrak.hexcasting.api.casting.eval.vm.CastingImage image) at.petrak.hexcasting.xplat.IXplatTagstags()net.minecraft.network.protocol.Packet<net.minecraft.network.protocol.game.ClientGamePacketListener>toVanillaClientboundPacket(at.petrak.hexcasting.common.msgs.IMessage message) booleantryPlaceFluid(net.minecraft.world.level.Level level, net.minecraft.world.InteractionHand hand, net.minecraft.core.BlockPos pos, net.minecraft.world.level.material.Fluid fluid)
-
Field Details
-
TAG_BRAINSWEPT
- See Also:
-
TAG_SENTINEL_EXISTS
- See Also:
-
TAG_SENTINEL_GREATER
- See Also:
-
TAG_SENTINEL_POSITION
- See Also:
-
TAG_SENTINEL_DIMENSION
- See Also:
-
TAG_PIGMENT
- See Also:
-
TAG_FLIGHT_ALLOWED
- See Also:
-
TAG_FLIGHT_TIME
- See Also:
-
TAG_FLIGHT_ORIGIN
- See Also:
-
TAG_FLIGHT_DIMENSION
- See Also:
-
TAG_FLIGHT_RADIUS
- See Also:
-
TAG_ALTIORA_ALLOWED
- See Also:
-
TAG_ALTIORA_GRACE
- See Also:
-
ALTIORA_ATTRIBUTE_ID
-
TAG_VM
- See Also:
-
TAG_PATTERNS
- See Also:
-
-
Constructor Details
-
ForgeXplatImpl
public ForgeXplatImpl()
-
-
Method Details
-
platform
public at.petrak.hexcasting.xplat.Platform platform()- Specified by:
platformin interfaceat.petrak.hexcasting.xplat.IXplatAbstractions
-
isPhysicalClient
public boolean isPhysicalClient()- Specified by:
isPhysicalClientin interfaceat.petrak.hexcasting.xplat.IXplatAbstractions
-
isModPresent
- Specified by:
isModPresentin interfaceat.petrak.hexcasting.xplat.IXplatAbstractions
-
initPlatformSpecific
public void initPlatformSpecific()- Specified by:
initPlatformSpecificin interfaceat.petrak.hexcasting.xplat.IXplatAbstractions
-
setBrainsweepAddlData
public void setBrainsweepAddlData(net.minecraft.world.entity.Mob mob) - Specified by:
setBrainsweepAddlDatain interfaceat.petrak.hexcasting.xplat.IXplatAbstractions
-
setFlight
public void setFlight(net.minecraft.server.level.ServerPlayer player, at.petrak.hexcasting.api.player.FlightAbility flight) - Specified by:
setFlightin interfaceat.petrak.hexcasting.xplat.IXplatAbstractions
-
setAltiora
public void setAltiora(net.minecraft.world.entity.player.Player player, @Nullable @Nullable at.petrak.hexcasting.api.player.AltioraAbility altiora) - Specified by:
setAltiorain interfaceat.petrak.hexcasting.xplat.IXplatAbstractions
-
setPigment
@Nullable public @Nullable at.petrak.hexcasting.api.pigment.FrozenPigment setPigment(net.minecraft.world.entity.player.Player player, @Nullable @Nullable at.petrak.hexcasting.api.pigment.FrozenPigment pigment) - Specified by:
setPigmentin interfaceat.petrak.hexcasting.xplat.IXplatAbstractions
-
setSentinel
public void setSentinel(net.minecraft.world.entity.player.Player player, @Nullable @Nullable at.petrak.hexcasting.api.player.Sentinel sentinel) - Specified by:
setSentinelin interfaceat.petrak.hexcasting.xplat.IXplatAbstractions
-
setStaffcastImage
public void setStaffcastImage(net.minecraft.server.level.ServerPlayer player, @Nullable @Nullable at.petrak.hexcasting.api.casting.eval.vm.CastingImage image) - Specified by:
setStaffcastImagein interfaceat.petrak.hexcasting.xplat.IXplatAbstractions
-
setPatterns
public void setPatterns(net.minecraft.server.level.ServerPlayer player, List<at.petrak.hexcasting.api.casting.eval.ResolvedPattern> patterns) - Specified by:
setPatternsin interfaceat.petrak.hexcasting.xplat.IXplatAbstractions
-
isBrainswept
public boolean isBrainswept(net.minecraft.world.entity.Mob e) - Specified by:
isBrainsweptin interfaceat.petrak.hexcasting.xplat.IXplatAbstractions
-
getFlight
public at.petrak.hexcasting.api.player.FlightAbility getFlight(net.minecraft.server.level.ServerPlayer player) - Specified by:
getFlightin interfaceat.petrak.hexcasting.xplat.IXplatAbstractions
-
getAltiora
public at.petrak.hexcasting.api.player.AltioraAbility getAltiora(net.minecraft.world.entity.player.Player player) - Specified by:
getAltiorain interfaceat.petrak.hexcasting.xplat.IXplatAbstractions
-
getPigment
public at.petrak.hexcasting.api.pigment.FrozenPigment getPigment(net.minecraft.world.entity.player.Player player) - Specified by:
getPigmentin interfaceat.petrak.hexcasting.xplat.IXplatAbstractions
-
getSentinel
public at.petrak.hexcasting.api.player.Sentinel getSentinel(net.minecraft.world.entity.player.Player player) - Specified by:
getSentinelin interfaceat.petrak.hexcasting.xplat.IXplatAbstractions
-
getStaffcastVM
public at.petrak.hexcasting.api.casting.eval.vm.CastingVM getStaffcastVM(net.minecraft.server.level.ServerPlayer player, net.minecraft.world.InteractionHand hand) - Specified by:
getStaffcastVMin interfaceat.petrak.hexcasting.xplat.IXplatAbstractions
-
getPatternsSavedInUi
public List<at.petrak.hexcasting.api.casting.eval.ResolvedPattern> getPatternsSavedInUi(net.minecraft.server.level.ServerPlayer player) - Specified by:
getPatternsSavedInUiin interfaceat.petrak.hexcasting.xplat.IXplatAbstractions
-
clearCastingData
public void clearCastingData(net.minecraft.server.level.ServerPlayer player) - Specified by:
clearCastingDatain interfaceat.petrak.hexcasting.xplat.IXplatAbstractions
-
findMediaHolder
@Nullable public @Nullable at.petrak.hexcasting.api.addldata.ADMediaHolder findMediaHolder(net.minecraft.world.item.ItemStack stack) - Specified by:
findMediaHolderin interfaceat.petrak.hexcasting.xplat.IXplatAbstractions
-
findMediaHolder
@Nullable public @Nullable at.petrak.hexcasting.api.addldata.ADMediaHolder findMediaHolder(net.minecraft.server.level.ServerPlayer player) - Specified by:
findMediaHolderin interfaceat.petrak.hexcasting.xplat.IXplatAbstractions
-
findDataHolder
@Nullable public @Nullable at.petrak.hexcasting.api.addldata.ADIotaHolder findDataHolder(net.minecraft.world.item.ItemStack stack) - Specified by:
findDataHolderin interfaceat.petrak.hexcasting.xplat.IXplatAbstractions
-
findDataHolder
@Nullable public @Nullable at.petrak.hexcasting.api.addldata.ADIotaHolder findDataHolder(net.minecraft.world.entity.Entity entity) - Specified by:
findDataHolderin interfaceat.petrak.hexcasting.xplat.IXplatAbstractions
-
findHexHolder
@Nullable public @Nullable at.petrak.hexcasting.api.addldata.ADHexHolder findHexHolder(net.minecraft.world.item.ItemStack stack) - Specified by:
findHexHolderin interfaceat.petrak.hexcasting.xplat.IXplatAbstractions
-
findVariantHolder
@Nullable public @Nullable at.petrak.hexcasting.api.addldata.ADVariantItem findVariantHolder(net.minecraft.world.item.ItemStack stack) - Specified by:
findVariantHolderin interfaceat.petrak.hexcasting.xplat.IXplatAbstractions
-
isPigment
public boolean isPigment(net.minecraft.world.item.ItemStack stack) - Specified by:
isPigmentin interfaceat.petrak.hexcasting.xplat.IXplatAbstractions
-
getColorProvider
public at.petrak.hexcasting.api.pigment.ColorProvider getColorProvider(at.petrak.hexcasting.api.pigment.FrozenPigment pigment) - Specified by:
getColorProviderin interfaceat.petrak.hexcasting.xplat.IXplatAbstractions
-
sendPacketToPlayer
public void sendPacketToPlayer(net.minecraft.server.level.ServerPlayer target, at.petrak.hexcasting.common.msgs.IMessage packet) - Specified by:
sendPacketToPlayerin interfaceat.petrak.hexcasting.xplat.IXplatAbstractions
-
sendPacketNear
public void sendPacketNear(net.minecraft.world.phys.Vec3 pos, double radius, net.minecraft.server.level.ServerLevel dimension, at.petrak.hexcasting.common.msgs.IMessage packet) - Specified by:
sendPacketNearin interfaceat.petrak.hexcasting.xplat.IXplatAbstractions
-
sendPacketTracking
public void sendPacketTracking(net.minecraft.world.entity.Entity entity, at.petrak.hexcasting.common.msgs.IMessage packet) - Specified by:
sendPacketTrackingin interfaceat.petrak.hexcasting.xplat.IXplatAbstractions
-
toVanillaClientboundPacket
public net.minecraft.network.protocol.Packet<net.minecraft.network.protocol.game.ClientGamePacketListener> toVanillaClientboundPacket(at.petrak.hexcasting.common.msgs.IMessage message) - Specified by:
toVanillaClientboundPacketin interfaceat.petrak.hexcasting.xplat.IXplatAbstractions
-
createBlockEntityType
public <T extends net.minecraft.world.level.block.entity.BlockEntity> net.minecraft.world.level.block.entity.BlockEntityType<T> createBlockEntityType(BiFunction<net.minecraft.core.BlockPos, net.minecraft.world.level.block.state.BlockState, T> func, net.minecraft.world.level.block.Block... blocks) - Specified by:
createBlockEntityTypein interfaceat.petrak.hexcasting.xplat.IXplatAbstractions
-
tryPlaceFluid
public boolean tryPlaceFluid(net.minecraft.world.level.Level level, net.minecraft.world.InteractionHand hand, net.minecraft.core.BlockPos pos, net.minecraft.world.level.material.Fluid fluid) - Specified by:
tryPlaceFluidin interfaceat.petrak.hexcasting.xplat.IXplatAbstractions
-
drainAllFluid
public boolean drainAllFluid(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos) - Specified by:
drainAllFluidin interfaceat.petrak.hexcasting.xplat.IXplatAbstractions
-
getUnsealedIngredient
public net.minecraft.world.item.crafting.Ingredient getUnsealedIngredient(net.minecraft.world.item.ItemStack stack) - Specified by:
getUnsealedIngredientin interfaceat.petrak.hexcasting.xplat.IXplatAbstractions
-
isCorrectTierForDrops
public boolean isCorrectTierForDrops(net.minecraft.world.item.Tier tier, net.minecraft.world.level.block.state.BlockState bs) - Specified by:
isCorrectTierForDropsin interfaceat.petrak.hexcasting.xplat.IXplatAbstractions
-
addEquipSlotFabric
public net.minecraft.world.item.Item.Properties addEquipSlotFabric(net.minecraft.world.entity.EquipmentSlot slot) - Specified by:
addEquipSlotFabricin interfaceat.petrak.hexcasting.xplat.IXplatAbstractions
-
tags
public at.petrak.hexcasting.xplat.IXplatTags tags()- Specified by:
tagsin interfaceat.petrak.hexcasting.xplat.IXplatAbstractions
-
isShearsCondition
public net.minecraft.world.level.storage.loot.predicates.LootItemCondition.Builder isShearsCondition()- Specified by:
isShearsConditionin interfaceat.petrak.hexcasting.xplat.IXplatAbstractions
-
getModName
- Specified by:
getModNamein interfaceat.petrak.hexcasting.xplat.IXplatAbstractions
-
getActionRegistry
public net.minecraft.core.Registry<at.petrak.hexcasting.api.casting.ActionRegistryEntry> getActionRegistry()- Specified by:
getActionRegistryin interfaceat.petrak.hexcasting.xplat.IXplatAbstractions
-
getSpecialHandlerRegistry
public net.minecraft.core.Registry<at.petrak.hexcasting.api.casting.castables.SpecialHandler.Factory<?>> getSpecialHandlerRegistry()- Specified by:
getSpecialHandlerRegistryin interfaceat.petrak.hexcasting.xplat.IXplatAbstractions
-
getIotaTypeRegistry
public net.minecraft.core.Registry<at.petrak.hexcasting.api.casting.iota.IotaType<?>> getIotaTypeRegistry()- Specified by:
getIotaTypeRegistryin interfaceat.petrak.hexcasting.xplat.IXplatAbstractions
-
getArithmeticRegistry
public net.minecraft.core.Registry<at.petrak.hexcasting.api.casting.arithmetic.Arithmetic> getArithmeticRegistry()- Specified by:
getArithmeticRegistryin interfaceat.petrak.hexcasting.xplat.IXplatAbstractions
-
getContinuationTypeRegistry
public net.minecraft.core.Registry<at.petrak.hexcasting.api.casting.eval.vm.ContinuationFrame.Type<?>> getContinuationTypeRegistry()- Specified by:
getContinuationTypeRegistryin interfaceat.petrak.hexcasting.xplat.IXplatAbstractions
-
getEvalSoundRegistry
public net.minecraft.core.Registry<at.petrak.hexcasting.api.casting.eval.sideeffects.EvalSound> getEvalSoundRegistry()- Specified by:
getEvalSoundRegistryin interfaceat.petrak.hexcasting.xplat.IXplatAbstractions
-
isBreakingAllowed
public boolean isBreakingAllowed(net.minecraft.server.level.ServerLevel world, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, @Nullable @Nullable net.minecraft.world.entity.player.Player player) - Specified by:
isBreakingAllowedin interfaceat.petrak.hexcasting.xplat.IXplatAbstractions
-
isPlacingAllowed
public boolean isPlacingAllowed(net.minecraft.server.level.ServerLevel world, net.minecraft.core.BlockPos pos, net.minecraft.world.item.ItemStack blockStack, @Nullable @Nullable net.minecraft.world.entity.player.Player player) - Specified by:
isPlacingAllowedin interfaceat.petrak.hexcasting.xplat.IXplatAbstractions
-
getPehkuiApi
public at.petrak.hexcasting.interop.pehkui.PehkuiInterop.ApiAbstraction getPehkuiApi()- Specified by:
getPehkuiApiin interfaceat.petrak.hexcasting.xplat.IXplatAbstractions
-