Commit Graph

1506 Commits

Author SHA1 Message Date
Yanis48 19270ae02a
Random fixes (#1265)
* bug fixes

* Update BlockEntity.mapping

* abcd -> xyzw

* closes #856
2020-04-07 00:29:55 +01:00
liach b4efaeadd2
trunk placer and tree generation mappings (#1261)
Signed-off-by: liach <liach@users.noreply.github.com>

Co-authored-by: liach <liach@users.noreply.github.com>
2020-04-05 15:53:26 +01:00
liach 8a6cdb8699
Rename attribute factory methods to be unique (#1263)
I hate unqualified static method/field calls and static inference!

Signed-off-by: liach <liach@users.noreply.github.com>

Co-authored-by: liach <liach@users.noreply.github.com>
2020-04-05 12:19:15 +01:00
liach 032ee0894b
Region and session lock (#1254)
* Region and session lock

Signed-off-by: liach <liach@users.noreply.github.com>

* Update mappings/net/minecraft/world/gen/StructureAccessor.mapping

Co-Authored-By: Yanis48 <doublecraft.official@gmail.com>

Co-authored-by: liach <liach@users.noreply.github.com>
Co-authored-by: Yanis48 <doublecraft.official@gmail.com>
2020-04-04 21:19:01 +01:00
liach cabb00e658
20w14a Attributes (#1256)
* 20w14a Attributes

Signed-off-by: liach <liach@users.noreply.github.com>

* Map the attributes method for zoglin

Signed-off-by: liach <liach@users.noreply.github.com>

Co-authored-by: liach <liach@users.noreply.github.com>
2020-04-04 21:18:55 +01:00
Juuxel 3d277f0082
Use serialized names for Biome.MixedNoisePoint fields (#1247) 2020-04-03 20:17:51 +01:00
liach e0b168b919
Tags (#1250)
Signed-off-by: liach <liach@users.noreply.github.com>

Co-authored-by: liach <liach@users.noreply.github.com>
2020-04-03 20:14:29 +01:00
Yanis48 4bf04724a5
Level file mappings (#1253)
* level file mappings

* synchronous -> dsync, revert enigma update
2020-04-03 20:12:27 +01:00
Shnupbups 5ef7ccfb9b
some 14a stuff (#1251)
* some 14a stuff

* Apply suggestions from code review

Co-Authored-By: Yanis48 <doublecraft.official@gmail.com>
Co-Authored-By: liach <7806504+liach@users.noreply.github.com>

Co-authored-by: Yanis48 <doublecraft.official@gmail.com>
Co-authored-by: liach <7806504+liach@users.noreply.github.com>
2020-04-03 20:11:08 +01:00
liach 0a9fd73fa4
20w14a dfu (#1252)
Signed-off-by: liach <liach@users.noreply.github.com>

Co-authored-by: liach <liach@users.noreply.github.com>
2020-04-03 03:30:47 +01:00
modmuss50 0c14fa6444 20w14a 2020-04-02 18:40:17 +01:00
liach c785526e75
block bad names and glstatemanager bad stuff, rotation3 -> affine transformation (#1244)
* block bad names and glstatemanager bad stuff, rotation3 -> affine transformation

close #1224, close #1233, close #1234, close #1241

* Update mappings/com/mojang/blaze3d/platform/GlStateManager.mapping

Co-Authored-By: Yanis48 <doublecraft.official@gmail.com>

Co-authored-by: liach <liach@users.noreply.github.com>
Co-authored-by: Yanis48 <doublecraft.official@gmail.com>
2020-04-01 17:32:46 +01:00
Yanis48 d154cce219
block entity mappings (#1237) 2020-04-01 02:02:51 +01:00
Prospector 18c62920fc
Fix two more errors with Criterions instead of Criteria (#1243) 2020-03-31 01:35:21 +01:00
i509VCB 4b817e7c68
2 Rename fixes (#1242) 2020-03-30 18:35:14 +01:00
Shnupbups 8cd54e4886
stuff (#1231)
* stuff

less cursed this time hopefully

* Apply suggestions from code review

Co-Authored-By: liach <7806504+liach@users.noreply.github.com>

* Update ItemSteerable.mapping

* Update HungerManager.mapping

* revert Quaternion changes

* supplier -> table

* Update CrashReport.mapping

* Apply suggestions from code review

Co-Authored-By: Juuxel <6596629+Juuxel@users.noreply.github.com>
Co-Authored-By: Yanis48 <doublecraft.official@gmail.com>

* Update WorldBorderListener.mapping

Co-authored-by: liach <7806504+liach@users.noreply.github.com>
Co-authored-by: Juuxel <6596629+Juuxel@users.noreply.github.com>
Co-authored-by: Yanis48 <doublecraft.official@gmail.com>
2020-03-30 09:10:03 +00:00
Azteched 6199cacacd
Fixed Item spelling in register method (#1238) 2020-03-29 18:05:36 +01:00
­Sollace 99ba24aaaf
Remap inventories :D (#1154)
* Remap inventories :D

* @see -> see @link

* getMaxStackAmount -> getMaxCountPerStack

Co-Authored-By: Juuxel <6596629+Juuxel@users.noreply.github.com>

* Rename InventoryChangedListener.mapping to InventoryChangeCallback.mapping

* putStack -> setStack

* JD fixes

Co-Authored-By: liach <7806504+liach@users.noreply.github.com>

* Fix filename

* isAccessible -> canStayOpen

* isAccessible -> canStayOpen

* Update javadoc

* jd for getMaxCountPerStack

Return value jd taken from #1053 (with fixes)

* Update mappings/net/minecraft/inventory/SidedInventory.mapping

Co-Authored-By: Yanis48 <doublecraft.official@gmail.com>

* canStayOpen -> canPlayerUse

* canStayOpen -> canPlayerUse

Co-authored-by: Juuxel <6596629+Juuxel@users.noreply.github.com>
Co-authored-by: liach <7806504+liach@users.noreply.github.com>
Co-authored-by: Yanis48 <doublecraft.official@gmail.com>
2020-03-27 18:04:46 +00:00
liach 80aa993105
Move direction transformation and matrix3f to util math (need same package) (#1235)
move two matrices to non-client;
move two transformations to util math;
move globalpos to dynamic;
move propagator to world;
a few other util additions

Signed-off-by: liach <liach@users.noreply.github.com>

Co-authored-by: liach <liach@users.noreply.github.com>
2020-03-27 15:08:10 +00:00
­Sollace 3d228282e6
Renderer mappings (#988)
* part.render(matrix, vertices, light, overlay, red, green, blue, alpha)

* Fixed bad names

* Determined by the call to part.render(matrix, vertices, light, overlay)
  which delegates to part.render(matrix, vertices, light, overlay, 1, 1, 1, 1)

* Now we extrapolate to everything that calls part.render(matrix, vertices, light, overlay)
  Meanhile VertexConsumerProvider is

* Now we extrapolate to everything that cals pars.render(matrix, vertices, light, overlay, red, green, blue, alpha)

* This is not a render method! It sets the yaw and pitch on the skull

* Now we extrapolate to things that call mode.render(matrix, vertices, light, overlay, red, green, blue, alpha)
  Not much to change there though

* These are known from EntityRenderDispatcher

* render calls renderLabelIfPresent

* Now we're looking at things which call EntityRenderDispatcher.render(entity, x, y, z, yaw, matrix, provider, light)

* In ClientPlayNetworkHandler.onItemPickupAnimation the second entity is gotten from packet.getCollectorEntityId and defaulted to the player if null. The first entity is an item entity or an experience orb entity

* Going back to EntityRenderDispatcher, we can see the code for rendering shadows was moved here from the renderer itself

if (this.gameOptions.entityShadows && this.renderShadows && entityRenderer14.shadowRadius > 0.0f && !entity.isInvisible()) {
    double double22 = this.getSquaredDistanceToCamera(entity.getX(), entity.getY(), entity.getZ());
    float float24 = (float)((1.0 - double22 / 256.0) * entityRenderer14.field_4672);
    if (float24 > 0.0f) {
       renderShadow(matrix, provider, entity, float24, tickDelta, this.world, entityRenderer14.shadowRadius);
    }
}

* The last parameter is shadow radius, but to be sure we check, nd indeed it is reduced when the rendered entity is a baby

    private static void renderShadow(MatrixStack matrix, VertexConsumerProvider provider, Entity entity, float float4, float tickDelta, WorldView world, float radius) {
        float float8 = radius;
        if (entity instanceof MobEntity) {
            if (((MobEntity)entity).isBaby()) {
                float8 *= 0.5f;
            }
        }

* float4 was a myster, but it's just passed down as-is and used to determine the opacity of the shadow!

float float16 = (float)((opacity - (y - pos.getY()) / 2.0) * 0.5 * world.getBrightness(pos));
if (float16 >= 0.0f) {

* Forgot this one

* This is all low-hanging fruit.

* EntityRenderDispatcher.shouldRender(entity, frustrum, x, y, z)
-> EntityRenderer.isVisible(entity, frustrum, x, y, z)
-> Entity.shouldRenderFrom(x, y, z)

    @Environment(EnvType.CLIENT)
    public boolean shouldRenderFrom(double x, double y, double z) {
        double double8 = this.getX() - x;
        double double10 = this.getY() - y;
        double double12 = this.getZ() - z;
        double double14 = double8 * double8 + double10 * double10 + double12 * double12;
        return this.shouldRenderAtDistance(double14);
    }

* More things we know

* This is set by calling entity.getLeaningPitch

* This is only overriden by CreeperEntityRenderer and returns a float computed from the fuse time.
The value is then passed to getOverlay where it's passed to OverlayTexture.getU(animationCounter).

This causes the creeper to flash white when active. The same method,
interestingly, will use the V to create the hurt/death overlay

OverlayTexture.packUv(
	OverlayTexture.getU(animationCounter),
	OverlayTexture.getV(entity.hurtTime > 0 || entity.deathTime > 0)
)

* The final patches

* xrayEnabled -> isGlowing

* Commit suggestions/name changes I missed during rebase

Co-Authored-By: Juuxel <6596629+Juuxel@users.noreply.github.com>

* Fix typos

* yaw -> tickDelta

Co-Authored-By: liach <7806504+liach@users.noreply.github.com>

* provider -> vertexConsumers

Co-Authored-By: liach <7806504+liach@users.noreply.github.com>

* matrix -> matrices

Co-Authored-By: liach <7806504+liach@users.noreply.github.com>

* Fixed some encorrect names

* entry -> matrices

* textureU/V -> u/v

* isBanner -> isBannerBlock

* frustrum -> frustum

Co-Authored-By: Gegy <gegy1000@gmail.com>

* Fix broken/changed mappings for 20w10a

* grammar

Co-Authored-By: liach <7806504+liach@users.noreply.github.com>

* Update mappings/net/minecraft/client/particle/ItemPickupParticle.mapping

Co-Authored-By: liach <7806504+liach@users.noreply.github.com>

Co-authored-by: Juuxel <6596629+Juuxel@users.noreply.github.com>
Co-authored-by: liach <7806504+liach@users.noreply.github.com>
Co-authored-by: Gegy <gegy1000@gmail.com>
2020-03-27 11:06:32 +00:00
Juuxel c1d0d9db1f
Add CONTRIBUTING.md, mention mojmap being ARR (#1222)
* Add CONTRIBUTING.md, mention mojmap being ARR

Closes #1221. Created CONTRIBUTING.md file that is basically
a copy-paste from the README.

Closes #1209. CONVENTIONS.md now mentions that names from
mojmap should not be used.

* Suggestions
2020-03-26 14:12:00 +00:00
liach ab49bb2e7b
Jigsaw and rotation/rule test stuff (#1227)
Signed-off-by: liach <liach@users.noreply.github.com>

Co-authored-by: liach <liach@users.noreply.github.com>
2020-03-26 14:10:31 +00:00
Yanis48 f3692142b6
Strider entity mappings (#1225)
* strider entity mappings

* some additions

* changes

* changes

* Update ItemSteerable.mapping

* class_4988
2020-03-26 14:09:47 +00:00
modmuss50 421fd43218 20w13b 2020-03-26 14:08:27 +00:00
liach 0c84d443c2
Map two missing inner classes (#1228)
Signed-off-by: liach <liach@users.noreply.github.com>

Co-authored-by: liach <liach@users.noreply.github.com>
2020-03-26 11:32:00 +00:00
i509VCB 7b32b5f874
Javadoc for some client, datafixer and other miscellaneous areas. (#1219)
* Javadoc for some client, datafixer and misc.

* Update ServerPlayNetworkHandler.mapping

* Update MinecraftClient.mapping

* Update ClientPlayerEntity.mapping

* Update PlayerListEntry.mapping

* Update TypeReferences.mapping

* Update Entity.mapping

* Update LivingEntity.mapping

* Update NbtHelper.mapping

* Update CommandOutput.mapping

* Update mappings/net/minecraft/client/MinecraftClient.mapping

Co-Authored-By: liach <7806504+liach@users.noreply.github.com>

* Update mappings/net/minecraft/command/arguments/TestClassArgumentType.mapping

Co-Authored-By: liach <7806504+liach@users.noreply.github.com>

* Update mappings/net/minecraft/datafixer/TypeReferences.mapping

Co-Authored-By: liach <7806504+liach@users.noreply.github.com>

* Update mappings/net/minecraft/datafixer/TypeReferences.mapping

Co-Authored-By: liach <7806504+liach@users.noreply.github.com>

* Update mappings/net/minecraft/server/command/CommandOutput.mapping

Co-Authored-By: liach <7806504+liach@users.noreply.github.com>

* Update mappings/net/minecraft/command/arguments/ArgumentTypes.mapping

Co-Authored-By: liach <7806504+liach@users.noreply.github.com>

* Update mappings/net/minecraft/datafixer/TypeReferences.mapping

Co-Authored-By: liach <7806504+liach@users.noreply.github.com>

* Update mappings/net/minecraft/nbt/NbtHelper.mapping

Co-Authored-By: liach <7806504+liach@users.noreply.github.com>

* Update PlayerListEntry.mapping

* Update ClientPlayPacketListener.mapping

* Update ServerPlayPacketListener.mapping

* Update ClientPlayPacketListener.mapping

* Fix possible build error

* try 2

* Update LivingEntity.mapping

* Update mappings/net/minecraft/datafixer/TypeReferences.mapping

Co-Authored-By: Yanis48 <doublecraft.official@gmail.com>

* Update mappings/net/minecraft/entity/Entity.mapping

Co-Authored-By: Yanis48 <doublecraft.official@gmail.com>

* Update mappings/net/minecraft/nbt/NbtHelper.mapping

Co-Authored-By: Yanis48 <doublecraft.official@gmail.com>

* Update mappings/net/minecraft/nbt/NbtHelper.mapping

Co-Authored-By: Yanis48 <doublecraft.official@gmail.com>

Co-authored-by: liach <7806504+liach@users.noreply.github.com>
Co-authored-by: Yanis48 <doublecraft.official@gmail.com>
2020-03-25 23:14:55 +00:00
liach d93a2d54d5
Map two new farmer tasks (#1229)
Signed-off-by: liach <liach@users.noreply.github.com>

Co-authored-by: liach <liach@users.noreply.github.com>
2020-03-25 23:14:46 +00:00
liach 486d832be5
Minor dfu stuff (#1226)
* Minor dfu stuff

Signed-off-by: liach <liach@users.noreply.github.com>

* Missed this

Signed-off-by: liach <liach@users.noreply.github.com>

Co-authored-by: liach <liach@users.noreply.github.com>
2020-03-25 21:50:41 +00:00
Yanis48 dcf8bb0e96
Some block mappings (#1223)
* Some block mappings

* Update mappings/net/minecraft/block/Blocks.mapping

Co-Authored-By: liach <7806504+liach@users.noreply.github.com>

* Update Blocks.mapping

Co-authored-by: liach <7806504+liach@users.noreply.github.com>
2020-03-25 21:49:17 +00:00
modmuss50 a068df5d3d 20w13a 2020-03-25 17:49:03 +00:00
liach 4bcc8ac47c
EntityContext -> ShapeContext, EntityContextImpl -> EntityShapeContext (#1213)
Fixes #908.

This context is exclusively used by block's 3 shape checking methods.
For its usage outside of blocks, it is used to be eventually passed to call one of the shape checking methods (as in CollisionView#canPlace or RayTraceContext)

Signed-off-by: liach <liach@users.noreply.github.com>

Co-authored-by: liach <liach@users.noreply.github.com>
2020-03-24 22:54:23 +00:00
liach 0a63e67d08
Clarify Minecart sounds, fixes #918 (#1211)
* Clarify Minecart sounds, fixes #918

Signed-off-by: liach <liach@users.noreply.github.com>

* Update mappings/net/minecraft/client/sound/MinecartInsideSoundInstance.mapping

Co-Authored-By: Yanis48 <doublecraft.official@gmail.com>

Co-authored-by: liach <liach@users.noreply.github.com>
Co-authored-by: Yanis48 <doublecraft.official@gmail.com>
2020-03-24 22:53:56 +00:00
joaoh1 52012b1aa6
Fix PositionedSoundInstance's swapped param. names (#1220) 2020-03-24 22:53:30 +00:00
i509VCB 0ac0160c5a
Javadoc to describe the block/fluid state properties Minecraft provides (#1214)
* Javadoc for properties

* Update mappings/net/minecraft/state/property/Properties.mapping

Co-Authored-By: liach <7806504+liach@users.noreply.github.com>

* Update mappings/net/minecraft/state/property/Properties.mapping

Co-Authored-By: Yanis48 <doublecraft.official@gmail.com>

* Update mappings/net/minecraft/state/property/Properties.mapping

Co-Authored-By: Yanis48 <doublecraft.official@gmail.com>

* Update mappings/net/minecraft/state/property/Properties.mapping

Co-Authored-By: Yanis48 <doublecraft.official@gmail.com>

* Update mappings/net/minecraft/state/property/Properties.mapping

Co-Authored-By: Yanis48 <doublecraft.official@gmail.com>

* Update mappings/net/minecraft/state/property/Properties.mapping

Co-Authored-By: Yanis48 <doublecraft.official@gmail.com>

* Update mappings/net/minecraft/state/property/Properties.mapping

Co-Authored-By: Yanis48 <doublecraft.official@gmail.com>

* Update mappings/net/minecraft/state/property/Properties.mapping

Co-Authored-By: Yanis48 <doublecraft.official@gmail.com>

Co-authored-by: liach <7806504+liach@users.noreply.github.com>
Co-authored-by: Yanis48 <doublecraft.official@gmail.com>
2020-03-22 23:31:14 +00:00
Runemoro ee8d489d59
Update enigma (#1212) 2020-03-20 22:57:01 +00:00
liach 84c59b348d
Fully map out block state model generator (#1208)
* Fully map out block state model generator

Now eliminated all unmapped classes! 🎉

Signed-off-by: liach <liach@users.noreply.github.com>

* The block is cocoa

* Model map fixes

* derivative -> texture/model pool

Co-authored-by: liach <liach@users.noreply.github.com>
2020-03-20 22:16:59 +00:00
­Sollace 0f9c44a541
Mappings relating to code that uses CsvWriter (#1186)
* Mappings relating to code that uses CsvWriter

* ok

Co-Authored-By: liach <7806504+liach@users.noreply.github.com>

* 👌

Co-Authored-By: liach <7806504+liach@users.noreply.github.com>

* Update mappings/net/minecraft/server/world/ChunkTicketManager.mapping

Co-Authored-By: liach <7806504+liach@users.noreply.github.com>

* directionalLighting -> shade

* Revise param names for createArea

* @Sollace misreads the code again

Co-authored-by: liach <7806504+liach@users.noreply.github.com>
2020-03-20 18:16:55 +00:00
NeunEinser 71c375ca14
@returns -> @return (#1210) 2020-03-20 18:16:28 +00:00
liach 9446cccca5
Map reverse portal particle (#1206)
* Map reverse portal particle

and many other missing fields in particle/factories

Signed-off-by: liach <liach@users.noreply.github.com>

* Update mappings/net/minecraft/client/particle/CurrentDownParticle.mapping

Co-Authored-By: Joseph Burton <burtonjae@hotmail.co.uk>

Co-authored-by: liach <liach@users.noreply.github.com>
Co-authored-by: Joseph Burton <burtonjae@hotmail.co.uk>
2020-03-19 16:24:35 +00:00
liach b931f3b1de
Map class 4966 and associated chunk generator stuff (#1207)
Signed-off-by: liach <liach@users.noreply.github.com>

Co-authored-by: liach <liach@users.noreply.github.com>
2020-03-19 16:24:12 +00:00
liach e34b5a891e
New sound stuff, fish hook predicate, missed persistent state uuid fix (#1202)
Signed-off-by: liach <liach@users.noreply.github.com>

Add jd to note this is the mood percentage for biome sound

Co-authored-by: liach <liach@users.noreply.github.com>
2020-03-19 14:50:03 +00:00
­Sollace e57e86ce75
Realms mappings (#1170)
* Realms mappings

* More missing names

* getname -> getName

Co-Authored-By: liach <7806504+liach@users.noreply.github.com>

* Enigma pls

Co-authored-by: liach <7806504+liach@users.noreply.github.com>
2020-03-19 14:43:45 +00:00
liach 9357e4ea58
A few uuid fixes mapped (#1201)
Now enigma takes too long decompiling some classes. Weird...

Signed-off-by: liach <liach@users.noreply.github.com>

Co-authored-by: liach <liach@users.noreply.github.com>
2020-03-19 14:42:14 +00:00
Yanis48 1cf89957f5
Sorted out the projectile mess (#1199)
* sorted out the projectile mess

* Update ShulkerBulletEntity.mapping
2020-03-19 14:41:57 +00:00
Joseph Burton 69b0299c91
Slot documentation stuff (#1198)
* Slot documentation stuff

* Fix javadoc paragraphs and add comment about click data with throw action type
2020-03-19 14:41:44 +00:00
Yanis48 a36211bd7c
Quick entity fixes (#1200) 2020-03-19 14:07:30 +00:00
Meredith Espinosa ea26d32385
Map methods in AbstractBlock and subclasses (#1203)
* update abstract block mappings

* rename slowDownMultiplier to unify with settings name

* add in all the parameters

* Apply suggestions from code review

Co-Authored-By: liach <7806504+liach@users.noreply.github.com>

* change a few names

Co-authored-by: liach <7806504+liach@users.noreply.github.com>
2020-03-19 14:07:11 +00:00
Yanis48 27d4f077fc
RespawnAnchorBlock & related respawn stuff (#1204) 2020-03-18 23:12:00 +00:00
modmuss50 839d6878b9
Fix swapped names (#1205) 2020-03-18 23:10:54 +00:00
modmuss50 d3f199b863 Initial pass on Abstract Block - Open to changes 2020-03-18 19:43:14 +00:00
modmuss50 3b3f80b207 Remove duplicate mapping 2020-03-18 19:02:26 +00:00
modmuss50 ab907504e7 20w12a 2020-03-18 18:59:27 +00:00
­Sollace 93701715c0
Moved a lot of "util" classes to more appropriate packages (#1171)
* Moved a lot of "util" classes to more appropriate packages

* Move UncaughtExceptionLogger to the correct package

* These are all collections/sets/iterables

* Move stuff relating to dyamics into util/dynamic

* UnaryOperator is only used in the context of loot tables

* Functional classes into util/function

* Time classes into a util/time package

* JsonHelper -> JsonUtil

* Whatever that name is, this is a world class

* Moved ReusableStream to util/collection

* TODO: this name is wrong

* Update mappings/net/minecraft/util/io/CsvWriter.mapping

Co-Authored-By: liach <7806504+liach@users.noreply.github.com>

* Move OffsetDoubleList to the shape package (since it's only used there)

* Move CsvWriter to the profiler package

* io package is gone :crab_dance:

* time package is gone :crab_dance:

* And now it lets me add them...

* Move Lazy back to util/

* Revert JsonUtil to JsonHelper

* Jeon -> Json

* Update mappings/net/minecraft/util/Identifier.mapping

Co-Authored-By: liach <7806504+liach@users.noreply.github.com>

* ids -> initialSize

Co-authored-by: liach <7806504+liach@users.noreply.github.com>
2020-03-17 23:04:34 +00:00
liach 5f5d0a8746
InfoEnchantment -> EnchantmentLevelEntry (extends WeightedPicker.Entry) (#1182)
* InfoEnchantment -> EnchantmentsEntry (extends WeightedPicker.Entry)
Enchantment$Weight -> Enchantment$Rarity

again time to end that utter nonsense

Signed-off-by: liach <liach@users.noreply.github.com>

* Don't cry at me for not closing #1181 if you get fooled into think this is the actual "enchantment"
this thing is just a weighted picker entry; even client data gen properties entry (key-value pair) has proper hashCode and equals and this thing doesn't

Signed-off-by: liach <liach@users.noreply.github.com>

* Good suggestions earthcomputer

Signed-off-by: liach <liach@users.noreply.github.com>

* Suggested EnchantmentLevelEntry

Signed-off-by: liach <liach@users.noreply.github.com>

* Selected changes for enchantment helper

* Rephrase to make it less confusing per juuz

Co-authored-by: liach <liach@users.noreply.github.com>
2020-03-17 20:26:12 +00:00
liach 7937cb1803
Some parameter names and corrections (#1183)
* Some parameter names and corrections
Fix the properties handler name conflict in #1145

Signed-off-by: liach <liach@users.noreply.github.com>

* Update mappings/net/minecraft/server/dedicated/AbstractPropertiesHandler.mapping

Co-Authored-By: Juuxel <6596629+Juuxel@users.noreply.github.com>

Co-authored-by: liach <liach@users.noreply.github.com>
Co-authored-by: Juuxel <6596629+Juuxel@users.noreply.github.com>
2020-03-17 20:23:58 +00:00
Joseph Burton 4b2f6a5aa8
Pathfinding improvements (#1180)
* Pathfinding improvements

* n.m.block.BlockPlacementEnvironment -> n.m.entity.ai.pathing.NavigationType
2020-03-17 20:21:08 +00:00
i509VCB 9e3e56c893
Map some more DataFixer code. (#1179)
* Map some datafixer code,

* Javadoc describing what NbtOps is used for

* Update mappings/net/minecraft/datafixer/NbtOps.mapping

Co-Authored-By: liach <7806504+liach@users.noreply.github.com>

Co-authored-by: liach <7806504+liach@users.noreply.github.com>
2020-03-17 20:21:00 +00:00
liach 61ab4691f2
BlockPos mappings (#1177)
* BlockPos mappings

Signed-off-by: liach <liach@users.noreply.github.com>

* iterate/stream manhattan -> iterate/stream outwards

* Update mappings/net/minecraft/util/math/BlockPos.mapping

* Comments on block pos

Signed-off-by: liach <liach@users.noreply.github.com>

Co-authored-by: liach <liach@users.noreply.github.com>
2020-03-17 20:20:50 +00:00
Juuxel 6d4d0f5cf3
Fix client/server being swapped in InventoryS2CPacket's docs (#1196) 2020-03-17 13:05:14 +00:00
Juuxel f738309128
Improve InventoryS2CPacket's names (#1194) 2020-03-16 22:59:24 +00:00
shedaniel bc23219e17
remove blit and javadoc i need comments (#1168)
* remove blit i need comments

* some javadoc?

* revert parameters names

* fix interchangeable
2020-03-16 21:41:30 +00:00
Joseph Burton 6c500b99ac
Fix ItemStack mappings (#1188)
* Fix ItemStack mappings

* I guess it doesn't ignore count either
2020-03-16 17:24:44 +00:00
Thalia Nero 0f40ff6dc6
Map the rest of CommandBlockExecutor (#1184) 2020-03-16 10:52:26 +00:00
liach a1b8da33a9
Enchantments, vines, particles 11a (#1174)
* Enchantments, vines, particles 11a
Fixes #1084 as well

* Detail on what the ench method does

Signed-off-by: liach <liach@users.noreply.github.com>

* Now this thing has a builder ye

Signed-off-by: liach <liach@users.noreply.github.com>

* Update mappings/net/minecraft/world/gen/feature/TwistingVinesFeature.mapping

* Update mappings/net/minecraft/world/gen/feature/TwistingVinesFeature.mapping

* Rename method sin weeping vine feature as requested by @supercoder7979

Signed-off-by: liach <liach@users.noreply.github.com>

* Vines -> VineLogic

Signed-off-by: liach <liach@users.noreply.github.com>

Co-authored-by: liach <liach@users.noreply.github.com>
2020-03-13 13:55:19 +00:00
Mikhail Oleynikov 2cd906df4e
Map LevelGeneratorOptions (#1175)
* Map LevelGeneratorOptions

* Delete build.gradle

* FIX MESS

This reverts commit 1401dd2a73.

* FIX MESS 2

* 20w11a falseresync/levelgen (#1)

* Stuff around this level gen stuff

Signed-off-by: liach <liach@users.noreply.github.com>

* Another missed

* one more field

Co-authored-by: liach <liach@users.noreply.github.com>

Co-authored-by: liach <7806504+liach@users.noreply.github.com>
Co-authored-by: liach <liach@users.noreply.github.com>
2020-03-13 13:55:03 +00:00
Yanis48 666890b9d8
Made some entity renderer and model fields and parameters consistent (#1176)
* Entity renderers' SKIN -> TEXTURE & made some parameters consistent

* some fields and constructor parameters in model classes

* shulker colored textures

* Update mappings/net/minecraft/client/render/entity/WitherEntityRenderer.mapping

Co-Authored-By: Juuxel <6596629+Juuxel@users.noreply.github.com>

* Update mappings/net/minecraft/client/render/entity/WitherSkullEntityRenderer.mapping

Co-Authored-By: Juuxel <6596629+Juuxel@users.noreply.github.com>

Co-authored-by: Juuxel <6596629+Juuxel@users.noreply.github.com>
2020-03-13 13:54:42 +00:00
liach 0662643338
Followup cleanups around screen handler change (#1166)
* Followup cleanups around screen handler change
Closes #1153

Signed-off-by: liach <liach@users.noreply.github.com>

* Lol i missed this

Co-Authored-By: Juuxel <6596629+Juuxel@users.noreply.github.com>

* SCREEN_TITLE -> TITLE

Co-authored-by: liach <liach@users.noreply.github.com>
Co-authored-by: Juuxel <6596629+Juuxel@users.noreply.github.com>
2020-03-12 21:05:02 +00:00
modmuss50 9497721136 20w11a 2020-03-11 17:25:56 +00:00
Juuxel 08f62761fc
EnderCrystal -> EndCrystal, #1163 improvements (#1173)
The end crystal entity is registered as minecraft:end_crystal.
2020-03-11 16:17:29 +00:00
liach e380edac44
tiny works on model/blockstate data gen (#1169)
* BlockStateVariantManager#register(2)[1 = ] -> properties

* BlockStateVariantManager#register(2)[2 = ] -> possibleVariants

* BlockStateModelGenerator#method_25681(1) -> registerWithSimpleModel

* BlockStateModelGenerator#method_25543(2) -> registerWithLinkedModel

* BlockStateModelGenerator#registerWithSimpleModel(1)[1 = ] -> block

* BlockStateModelGenerator#registerWithLinkedModel(2)[1 = ] -> block

* BlockStateModelGenerator#registerWithLinkedModel(2) -> registerModelReference

* BlockStateModelGenerator#registerModelReference(2) -> registerStateWithModelReference

* BlockStateModelGenerator#registerStateWithModelReference(2)[2 = ] -> modelReference

* BlockStateModelGenerator#registerWithSimpleModel(1) -> registerSimpleState

* +44 doc in net/minecraft/data/client/model/BlockStateSupplier

* VariantsBlockStateSupplier#<init>(2)[2 = ] -> variants

* VariantsBlockStateSupplier%field_22862 -> variantManager

* BlockStateVariantManager#register(2)[1 = properties] -> condition

* +62 doc in net/minecraft/data/client/model/PropertiesEntry

* +86 doc in net/minecraft/data/client/model/Properties

* +30 doc in net/minecraft/data/client/model/Properties

* +30 doc in net/minecraft/data/client/model/PropertiesEntry

* +81 doc in PropertiesEntry#streamAllFor(1)

* +62 doc in net/minecraft/data/client/model/BlockStateVariant

* net/minecraft/data/client/model/BlockStateVariantManager -> net/minecraft/data/client/model/VariantMap

* +96 doc in net/minecraft/data/client/model/VariantMap

* +20 doc in net/minecraft/data/client/model/VariantMap

* net/minecraft/data/client/model/VariantMap -> net/minecraft/data/client/model/BlockStateVariantMap

* +1 doc in net/minecraft/data/client/model/BlockStateVariantMap

* VariantsBlockStateSupplier%field_22861 -> definedProperties

* VariantsBlockStateSupplier%variantManager -> variantMaps

* net/minecraft/data/client/model/Properties -> net/minecraft/data/client/model/PropertiesMap

* BlockStateModelGenerator#method_25690(1) -> registerCommandBlock

* BlockStateModelGenerator#method_25692(1) -> registerAnvil

* BlockStateModelGenerator#registerCommandBlock(1)[1 = ] -> block

* BlockStateModelGenerator#registerAnvil(1)[1 = ] -> block

* +50 doc in net/minecraft/data/client/model/TexturedModel

* +47 doc in TexturedModel$Factory#get(4)

* remove broken docs

Co-authored-by: liach <liach@users.noreply.github.com>
2020-03-11 15:10:12 +00:00
liach 7bd162989d
Pick up rendering stuff and dragon stuff (#1163)
* Pick up #1026 and adjustments

ArmorFeatureRenderer, BipedEntityModel and some player stuff

Parrot entity rendering fixes

At the moment, I don't know the difference between method_17110 and method_17111.

method_17110 -> animateModel

Still a provisional name.

Finish the other feature renderers (except CapeFeatureRenderer)

Name methods involving armor stands

Work on Ender Dragon-related things

overlay{Message, Tinted} -> {message, tinted}

Add docs for ClientPlayerEntity#wateriness (now wetness)

ClientPlayerEntity#getVisibilityReductionFromWater -> getScaledWetness

Actually add javadocs

newHealth -> health

DragonFireballEntityRenderer#FIREBALL -> LAYER

* Update mappings/net/minecraft/client/render/RenderLayer.mapping

Co-authored-by: Kyarei <uruwi@protonmail.com>
2020-03-11 15:09:33 +00:00
Deximus-Maximus 601be823bf
getMiningSpeed -> getMiningSpeedMultiplier (#1161)
Update name to be accurate and more descriptive
2020-03-10 20:42:24 +00:00
Mikhail Oleynikov b172cf03c1
Extend structures and structure pools mappings (#1160)
* Extend structures and structure pools mappings

* Tweak isometry names; refine structure and structure pool names

* Rename rotationCenter -> pivot

* Update StructurePool.mapping

* Update mappings/net/minecraft/structure/pool/StructurePool.mapping

Co-Authored-By: liach <7806504+liach@users.noreply.github.com>

Co-authored-by: liach <7806504+liach@users.noreply.github.com>
2020-03-10 20:42:03 +00:00
liach 2b9d3843d4
Realms mapped (#1167)
* Realms mapped

Now only 4 inner classes left in that giant block state data generator, planning to use cloak

Signed-off-by: liach <liach@users.noreply.github.com>

* Use @since jd tag

thanks falseresync

Co-Authored-By: Mikhail Oleynikov <falseresync@gmail.com>

* Thanks juuz

Co-Authored-By: Juuxel <6596629+Juuxel@users.noreply.github.com>

* Remove since tags

Signed-off-by: liach <liach@users.noreply.github.com>

Co-authored-by: liach <liach@users.noreply.github.com>
Co-authored-by: Mikhail Oleynikov <falseresync@gmail.com>
Co-authored-by: Juuxel <6596629+Juuxel@users.noreply.github.com>
2020-03-10 20:41:47 +00:00
SuperCoder79 55b6d0c988
FoliagePlacer mapping and doc, Tree mapping, and a lot of misc feature mapping (#1159)
* a whole lot of feature mappings

* fix wrong comment placement

* removed empty comment

* Apply suggestions from code review

Co-Authored-By: liach <7806504+liach@users.noreply.github.com>

* fix based on reivew

* fix docs

* Update FoliagePlacer.mapping

* Apply suggestions from code review

Co-Authored-By: Juuxel <6596629+Juuxel@users.noreply.github.com>

Co-authored-by: liach <7806504+liach@users.noreply.github.com>
Co-authored-by: Juuxel <6596629+Juuxel@users.noreply.github.com>
2020-03-10 16:34:02 +00:00
modmuss50 355a622b46 Generate a mergedv2 jar, update engima + some other tweaks. Closes #1071 2020-03-09 19:28:16 +00:00
liach d24dec94fb
Plant block, smithing table container, data gen, dfu, dynamic seriali… (#1148)
* Plant block, smithing table container, data gen, dfu, dynamic serializable boolean

Signed-off-by: liach <liach@users.noreply.github.com>

* updateresult

Signed-off-by: liach <liach@users.noreply.github.com>

* Some biome sound and container screen etc

Signed-off-by: liach <liach@users.noreply.github.com>

* More stuff
block state model generator is too big, maybe need cloak (enigma too slow)

Signed-off-by: liach <liach@users.noreply.github.com>

* Update mappings/net/minecraft/container/ForgingContainer.mapping

* conatiner name -> screen title

Signed-off-by: liach <liach@users.noreply.github.com>

* Document the 3 types of sounds; biome ambient sound player -> effect sound player

Signed-off-by: liach <liach@users.noreply.github.com>

* Update ModelIds.mapping

* container -> screen handler

Signed-off-by: liach <liach@users.noreply.github.com>

* Update mappings/net/minecraft/client/gui/screen/ingame/SmithingScreen.mapping

Missed this boi

Co-authored-by: liach <liach@users.noreply.github.com>
2020-03-08 22:23:40 +00:00
Prospector 462812a68e
Container -> ScreenHandler (#1106)
* Container -> ScreenHandler

* Fix first set of issues (excluding comments)

* Fix comment issues
2020-03-08 22:18:57 +00:00
Yanis48 168d6b23ec
Random fixes (#1162) 2020-03-08 22:14:25 +00:00
­Sollace 8a01945f5c
Drop invalid mappings (#1158) 2020-03-08 11:24:23 +00:00
Pyrofab 135f569146
Document changed UUID serialization methods (#1156)
* Document changed NBT methods

* Avoid unintended incompatibilities with old worlds
2020-03-08 11:23:54 +00:00
martmists 948804d428
Suggest mappings (#1123)
* OverworldChunkGeneratorConfig%field_13224 -> biomeSize

* OverworldChunkGeneratorConfig%field_13223 -> riverSize

* OverworldChunkGeneratorConfig%field_13222 -> forcedBiome

* OverworldChunkGeneratorConfig%field_13221 -> minY

* ServerWorld#method_18210(1) -> getSurface

* EnchantmentHelper#method_24365(3) -> getMatchingEquipment

* EnchantmentHelper#getMatchingEquipment(3) -> getMatchingEnchantedEquipment

* Update mappings/net/minecraft/block/BedBlock.mapping

Co-Authored-By: liach <7806504+liach@users.noreply.github.com>

* Update mappings/net/minecraft/world/gen/chunk/OverworldChunkGeneratorConfig.mapping

Co-Authored-By: liach <7806504+liach@users.noreply.github.com>

* Update mappings/net/minecraft/world/gen/chunk/OverworldChunkGeneratorConfig.mapping

Co-Authored-By: liach <7806504+liach@users.noreply.github.com>

Co-authored-by: liach <7806504+liach@users.noreply.github.com>
2020-03-07 17:38:28 +00:00
­Sollace 372e9fa3b2
Cape and Elytra mappings for PlayerEntity (#1138)
* Cape and Elytra mappings for PlayerEntity

* Apply suggestions from code review

Co-Authored-By: Pyrofab <redstoneinfire@gmail.com>

* spreadItems -> throwRandomly

* vx/y/z -> dx/y/z

* Remove invalid mappings

Co-authored-by: Pyrofab <redstoneinfire@gmail.com>
2020-03-07 17:37:40 +00:00
liach ab47a6c0bc bedrock floor/ceiling mappings
Supersedes #1121

Signed-off-by: liach <liach@users.noreply.github.com>
2020-03-07 17:36:39 +00:00
modmuss50 c552e79ea1
named and commented various seeding methods (#1118)
* named and commented various seeding methods

* finished commenting

* various changes

* fixed my bad spelling

* split paragraphs

* Update mappings/net/minecraft/world/gen/ChunkRandom.mapping

Co-Authored-By: Runemoro <runemoro1@gmail.com>

* Update mappings/net/minecraft/world/gen/ChunkRandom.mapping

Co-Authored-By: Runemoro <runemoro1@gmail.com>

* Update mappings/net/minecraft/world/gen/ChunkRandom.mapping

Co-Authored-By: Runemoro <runemoro1@gmail.com>

* Update mappings/net/minecraft/world/gen/ChunkRandom.mapping

Co-Authored-By: Runemoro <runemoro1@gmail.com>

* changed pos to block

Co-authored-by: Runemoro <runemoro1@gmail.com>
2020-03-05 23:59:17 +00:00
modmuss50 f339c99217
some piglin stuff + misc (#1144)
* some piglin stuff + misc

* Update mappings/net/minecraft/entity/mob/ZombifiedPiglinEntity.mapping

Co-Authored-By: Juuxel <6596629+Juuxel@users.noreply.github.com>

* more stuff

Co-authored-by: Juuxel <6596629+Juuxel@users.noreply.github.com>
2020-03-05 21:40:35 +00:00
modmuss50 42eff3b6d0
Add Back Some Projectile Mappings (#1150) 2020-03-05 21:39:51 +00:00
modmuss50 991ed5c736
Map Chunk loading, Chunks and Chunk Generation (#1151)
* ThreadedAnvilChunkStorage#method_20458(2) -> tryUnloadChunk

* ThreadedAnvilChunkStorage#tryUnloadChunk(2)[1 = ] -> chunkPosLong

* ThreadedAnvilChunkStorage#method_21676(1) -> getFutureStatus

* ChunkHolder#method_20725(0) -> getBorderFuture

* ChunkTicketManager#method_21623(1)[1 = ] -> chunkPosLong

* ChunkTicketManager#method_21623(1) -> getTicket

* +191 doc in ThreadedAnvilChunkStorage%MAX_LEVEL

* ChunkHolder%field_19238 -> ticking

* ChunkHolder#method_20385(0) -> updateTickingStatus

* ChunkHolder#method_20384(0) -> isTicking

* ProtoChunk#method_22405(1) -> setBiomeArray

* ProtoChunk%field_20656 -> biomes

* ChunkHolder#method_23271(0) -> getLevelType

* ProtoChunk#<init>(5)[5 = ] -> fluidTickScheduler

* ProtoChunk#<init>(5)[4 = ] -> blockTickScheduler

* Chunk#setBlockState(3)[3 = ] -> moved

* ChunkTicketManager#addTicket(2)[3 = ] -> ticket

* net/minecraft/world/chunk/ChunkStatus$Task -> GenerationTask

* +54 doc in net/minecraft/world/chunk/ChunkStatus$GenerationTask

* net/minecraft/world/chunk/ChunkStatus$GenerationTask -> Task

* -54 doc in net/minecraft/world/chunk/ChunkStatus$Task

* WorldChunk#<init>(9)[5 = ] -> blockTickScheduler

* WorldChunk#<init>(9)[6 = ] -> fluidTickScheduler

* WorldChunk#<init>(9)[7 = ] -> inhabitedTime

* WorldChunk#<init>(9)[10 = ] -> loadToWorldConsumer

* WorldChunk#getFluidState(3)[3 = ] -> z

* WorldChunk#setLoadedToWorld(1)[1 = ] -> loaded

* ThreadedAnvilChunkStorage$TicketManager#<init>(2)[1 = ] -> workerExecutor

* ThreadedAnvilChunkStorage$TicketManager#<init>(2)[2 = ] -> mainThreadExecutor

* ThreadedAnvilChunkStorage#method_20605(1) -> unloadChunks

* ThreadedAnvilChunkStorage#unloadChunks(1)[1 = ] -> shouldKeepTicking

* ThreadedAnvilChunkStorage#method_20619(1) -> loadChunk

* ThreadedAnvilChunkStorage#loadChunk(1)[1 = ] -> pos

* ThreadedAnvilChunkStorage#method_20617(2) -> generateChunk

* Fix issues
2020-03-05 21:39:17 +00:00
modmuss50 6bf062b174
some gui changes (#1152)
* some gui changes

* draw line changes

* text typo

* z offset
2020-03-05 21:38:51 +00:00
modmuss50 72fa1d7581
Restore GUI names from 20w09a (#1149)
* (WIP) Restore names from 20w09a

* Add more names

* Add a field name
2020-03-04 23:18:13 +00:00
modmuss50 1b7aa91a4d 20w10a
bit of a big one
2020-03-04 20:22:46 +00:00
Ido Dana 067f52a039
isCloseToTarget -> isNearTarget (#1141) 2020-03-03 15:12:50 +00:00
liach 627465501e
20w09a all classes mapped (#1143)
* 20w09a all classes mapped

Signed-off-by: liach <liach@users.noreply.github.com>

* call it Repeating Audio Stream

Signed-off-by: liach <liach@users.noreply.github.com>
2020-03-03 15:10:30 +00:00
Joseph Burton 5f9669e04e
A couple of additions to PointOfInterestStorage (#1139)
* A couple of additions to PointOfInterestStorage

* getX -> getInX
2020-02-28 18:57:37 +00:00
liach d924b03325
Eliminate all unmapped classes from yarn (#1135)
Signed-off-by: liach <liach@users.noreply.github.com>
2020-02-28 18:28:02 +00:00
Joseph Burton 1d3ea3b886
fungi -> fungus (#1136) 2020-02-28 16:06:45 +00:00
Joseph Burton f7a46e94f6
Map 20w09a blocks and items (#1137)
* Map new blocks and items

* Update mappings/net/minecraft/advancement/criterion/TargetHitCriterion.mapping

Co-Authored-By: liach <7806504+liach@users.noreply.github.com>

Co-authored-by: liach <7806504+liach@users.noreply.github.com>
2020-02-28 16:05:17 +00:00
Joseph Burton 162f4c5e20
minusDiv -> getLerpProgress + other improvements (#1134)
* minusDiv -> inverseLerp

* Rename parameters and clarify javadoc

* Fix javadoc to refer to new parameter names

* Rename inverseLerp -> getLerpProgress and other improvements in MathHelper

* randomUUID -> randomUuid
2020-02-26 21:43:31 +00:00
modmuss50 8e7f7a8d35 20w09a 2020-02-26 17:56:39 +00:00
liach b00c92199f
Map new classes, staging (#1122)
Map new classes, staging
2020-02-24 20:14:56 +00:00