Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing accessor entries to mixins.common.accessor.json #2463

Merged
merged 1 commit into from
Jan 4, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,10 @@
import net.minecraft.potion.Effect;
import net.minecraft.tileentity.BeaconTileEntity;
import org.spongepowered.api.data.Key;
import org.spongepowered.api.data.Keys;
import org.spongepowered.api.data.value.Value;
import org.spongepowered.api.effect.potion.PotionEffectType;
import org.spongepowered.common.data.provider.GenericMutableDataProvider;
import org.spongepowered.common.mixin.accessor.block.tileentity.BeaconTileEntityAccessor;
import org.spongepowered.common.mixin.accessor.tileentity.BeaconTileEntityAccessor;

import java.util.Optional;
import java.util.function.BiConsumer;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
package org.spongepowered.common.data.provider.block.entity;

import org.spongepowered.api.data.Keys;
import org.spongepowered.common.mixin.accessor.block.tileentity.BeaconTileEntityAccessor;
import org.spongepowered.common.mixin.accessor.tileentity.BeaconTileEntityAccessor;

public class BeaconTileEntityPrimaryEffectProvider extends BeaconTileEntityEffectProvider {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
package org.spongepowered.common.data.provider.block.entity;

import org.spongepowered.api.data.Keys;
import org.spongepowered.common.mixin.accessor.block.tileentity.BeaconTileEntityAccessor;
import org.spongepowered.common.mixin.accessor.tileentity.BeaconTileEntityAccessor;

public class BeaconTileEntitySecondaryEffectProvider extends BeaconTileEntityEffectProvider {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
import net.minecraft.entity.player.PlayerEntity;
import org.spongepowered.api.data.Keys;
import org.spongepowered.common.data.provider.GenericMutableDataProvider;
import org.spongepowered.common.mixin.accessor.entity.player.PlayerCapabilitiesAccessor;
import org.spongepowered.common.mixin.accessor.entity.player.PlayerAbilitiesAccessor;

import java.util.Optional;

Expand All @@ -44,7 +44,7 @@ protected Optional<Double> getFrom(PlayerEntity dataHolder) {

@Override
protected boolean set(PlayerEntity dataHolder, Double value) {
((PlayerCapabilitiesAccessor) dataHolder.abilities).accessor$setFlySpeed(value.floatValue());
((PlayerAbilitiesAccessor) dataHolder.abilities).accessor$setFlySpeed(value.floatValue());
dataHolder.sendPlayerAbilities();
return true;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
import net.minecraft.entity.player.PlayerEntity;
import org.spongepowered.api.data.Keys;
import org.spongepowered.common.data.provider.GenericMutableDataProvider;
import org.spongepowered.common.mixin.accessor.entity.player.PlayerCapabilitiesAccessor;
import org.spongepowered.common.mixin.accessor.entity.player.PlayerAbilitiesAccessor;

import java.util.Optional;

Expand All @@ -46,7 +46,7 @@ protected Optional<Double> getFrom(PlayerEntity dataHolder) {

@Override
protected boolean set(PlayerEntity dataHolder, Double value) {
((PlayerCapabilitiesAccessor) dataHolder.abilities).accessor$setWalkSpeed(value.floatValue());
((PlayerAbilitiesAccessor) dataHolder.abilities).accessor$setWalkSpeed(value.floatValue());
final IAttributeInstance attribute = dataHolder.getAttribute(SharedMonsterAttributes.MOVEMENT_SPEED);
attribute.setBaseValue(value);
dataHolder.sendPlayerAbilities();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
import org.spongepowered.asm.mixin.gen.Accessor;

@Mixin(PlayerAbilities.class)
public interface PlayerCapabilitiesAccessor {
public interface PlayerAbilitiesAccessor {

@Accessor("flySpeed") void accessor$setFlySpeed(float flySpeed);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
package org.spongepowered.common.mixin.accessor.block.tileentity;
package org.spongepowered.common.mixin.accessor.tileentity;

import net.minecraft.potion.Effect;
import net.minecraft.tileentity.BeaconTileEntity;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
package org.spongepowered.common.mixin.accessor.raid;
package org.spongepowered.common.mixin.accessor.world.raid;

import net.minecraft.world.raid.Raid;
import org.spongepowered.asm.mixin.Mixin;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
import org.spongepowered.api.entity.living.monster.raider.Raider;
import org.spongepowered.api.raid.Raid;
import org.spongepowered.api.raid.Wave;
import org.spongepowered.common.mixin.accessor.raid.RaidAccessor;
import org.spongepowered.common.mixin.accessor.world.raid.RaidAccessor;

import static com.google.common.base.Preconditions.checkNotNull;

Expand Down
14 changes: 12 additions & 2 deletions src/main/resources/mixins.common.accessor.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"mixins": [
"advancements.AdvancementManagerAccessor",
"advancements.CriteriaTriggersAccessor",
"block.AbstractSkullBlockAccessor",
"block.FireBlockAccessor",
"block.RedstoneWireBlockAccessor",
"entity.boss.dragon.phase.PhaseTypeAccessor",
Expand All @@ -17,6 +18,7 @@
"entity.item.FallingBlockEntityAccessor",
"entity.item.FireworkRocketEntityAccessor",
"entity.item.HangingEntityAccessor",
"entity.monster.BlazeEntityAccessor",
"entity.monster.CreeperEntityAccessor",
"entity.monster.EndermanEntityAccessor",
"entity.monster.EndermiteEntityAccessor",
Expand All @@ -28,7 +30,7 @@
"entity.passive.PigEntityAccessor",
"entity.passive.SheepEntityAccessor",
"entity.passive.WolfEntityAccessor",
"entity.player.PlayerCapabilitiesAccessor",
"entity.player.PlayerAbilitiesAccessor",
"entity.player.PlayerEntityAccessor",
"entity.projectile.AbstractArrowEntityAccessor",
"entity.projectile.ArrowEntityAccessor",
Expand All @@ -37,8 +39,11 @@
"entity.AgeableEntityAccessor",
"entity.AreaEffectCloudEntityAccessor",
"entity.EntityAccessor",
"entity.EntityPredicateAccessor",
"entity.LivingEntityAccessor",
"entity.MobEntityAccessor",
"inventory.container.AbstractFurnaceContainerAccessor",
"inventory.container.BeaconContainerAccessor",
"inventory.container.BrewingStandContainerAccessor",
"inventory.container.CraftingResultSlotAccessor",
"inventory.container.ContainerAccessor",
Expand Down Expand Up @@ -69,17 +74,20 @@
"scoreboard.ScoreAccessor",
"scoreboard.ScoreboardAccessor",
"scoreboard.ScoreObjectiveAccessor",
"server.management.PlayerListAccessor",
"server.MinecraftServerAccessor",
"tileentity.BannerPatternAccessor",
"tileentity.BeaconTileEntityAccessor",
"tileentity.BrewingStandTileEntityAccessor",
"tileentity.CommandBlockLogicAccessor",
"tileentity.EndGatewayTileEntityAccessor",
"tileentity.HopperTileEntityAccessor",
"tileentity.MobSpawnerTileEntityAccessor",
"tileentity.SkullTileEntityAccessor",
"util.math.AxisAlignedBBAccessor",
"util.registry.SimpleRegistryAccessor",
"util.text.StringTextComponentAccessor",
"util.text.StyleAccessor",
"util.text.TextFormattingAccessor",
"util.CombatEntryAccessor",
"util.CombatTrackerAccessor",
"util.DamageSourceAccessor",
Expand All @@ -90,6 +98,7 @@
"world.chunk.storage.RegionFileAccessor",
"world.dimension.DimensionTypeAccessor",
"world.gen.feature.DungeonsFeatureAccessor",
"world.raid.RaidAccessor",
"world.server.ServerWorldAccessor",
"world.spawner.AbstractSpawnerAccessor",
"world.storage.SaveHandlerAccessor",
Expand All @@ -101,6 +110,7 @@
],
"server": [
"server.dedicated.DedicatedServerAccessor",
"server.management.PlayerListAccessor",
"server.management.UserListAccessor",
"server.management.UserListEntryAccessor"
]
Expand Down