Skip to content

Instantly share code, notes, and snippets.

Scott Barnes mossyblog

Block or report user

Report or block mossyblog

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View Bindable.cs
public abstract class Bindable : MonoBehaviour, INotifyPropertyChanged
private readonly Dictionary<string, object> _properties = new Dictionary<string, object>();
private static readonly StackTrace stackTrace = new StackTrace();
public event PropertyChangedEventHandler PropertyChanged;
/// <summary>
/// Resolves a Property's name from a Lambda Expression passed in.
/// </summary>
package com.riagenic.BlockFarmer.core.asm.utils;
import net.minecraftforge.fml.common.FMLLog;
import net.minecraftforge.fml.common.ObfuscationReflectionHelper;
import net.minecraftforge.fml.common.asm.transformers.deobf.FMLDeobfuscatingRemapper;
import java.nio.charset.Charset;
mossyblog / gist:bf5313c1e6596142edff
Created Feb 4, 2016
Render 3D Icon in Minecraft of a Item/Block - 1.8.9
View gist:bf5313c1e6596142edff
public static void RenderFloatingItemIcon(float x, float y, float z, Item item, float partialTickTime, boolean animate) {
BlockPos pos = new BlockPos(x,y,z);
// Create Empty EntityItem to help with Rendering Positionining.
EntityItem entity = new EntityItem(mc.theWorld,pos.getX(),pos.getY(), pos.getZ());
if (entity.ticksExisted == 0)
entity.lastTickPosX = entity.posX;
entity.lastTickPosY = entity.posY;
entity.lastTickPosZ = entity.posZ;
You can’t perform that action at this time.